Skip to content

Commit

Permalink
stdenv: avoid -p flag for strip when boostrapping x86_64-darwin
Browse files Browse the repository at this point in the history
The stdenv wouldn't build with it, as
compiler-rt-libc-11.1.0/lib/darwin/libclang_rt.*_osx.a
retained reference to SDKs (which we forbid for final stdenv).

Assigned authorship to Trofi; I just bisected and added condition.
#224669 (comment)
  • Loading branch information
trofi authored and vcunat committed Apr 22, 2023
1 parent 56aa873 commit e7eb209
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/stdenv/darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ rec {
unset SDKROOT
stripAllFlags=" " # the Darwin "strip" command doesn't know "-s"
'' + lib.optionalString localSystem.isx86_64 ''
stripDebugFlags="-S" # the Darwin "strip" command does something odd with "-p"
'';

bootstrapTools = derivation ({
Expand Down

0 comments on commit e7eb209

Please sign in to comment.