Skip to content

Commit

Permalink
darwin.binutils: fix wrapper of as when cross-compiling to aarch64-…
Browse files Browse the repository at this point in the history
…darwin (#134097)
  • Loading branch information
jbg committed Aug 17, 2021
1 parent 5919a42 commit 00037f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/os-specific/darwin/binutils/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ stdenv.mkDerivation {
# and using clang directly here is a better option than relying on cctools.
# On x86_64-darwin the Clang version is too old to support this mode.
+ lib.optionalString stdenv.isAarch64 ''
rm $out/bin/as
makeWrapper "${clang-unwrapped}/bin/clang" "$out/bin/as" \
rm $out/bin/${targetPrefix}as
makeWrapper "${clang-unwrapped}/bin/clang" "$out/bin/${targetPrefix}as" \
--add-flags "-x assembler -integrated-as -c"
'';

Expand Down

0 comments on commit 00037f7

Please sign in to comment.