Skip to content

Commit

Permalink
Use strip tool from darwin.cctools
Browse files Browse the repository at this point in the history
Using the one from binutils makes a rust binary compiled with `-Cstrip=debuginfo` getting killed:

```
$ bazel-out/darwin-opt-exec-C7777A24/bin/external/rules_rust/util/process_wrapper/process_wrapper
Killed: 9
$ sudo dtruss bazel-out/darwin-opt-exec-C7777A24/bin/external/rules_rust/util/process_wrapper/process_wrapper
dtrace: failed to execute bazel-out/darwin-opt-exec-C7777A24/bin/external/rules_rust/util/process_wrapper/process_wrapper: Malformed Mach-o file
```
  • Loading branch information
avdv committed Jul 10, 2024
1 parent 397db44 commit fef7422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolchains/rust/rust.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ let
paths = [ pkgs.rustc ];
nativeBuildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/rustc --suffix PATH : ${{pkgs.binutils}}/bin
wrapProgram $out/bin/rustc --suffix PATH : ${{pkgs.darwin.cctools}}/bin
'';
}}
else pkgs.rustc;
Expand Down

0 comments on commit fef7422

Please sign in to comment.