Skip to content

Commit

Permalink
clang: skip the -nostdlibinc patch on Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
emilazy committed Oct 23, 2024
1 parent 65f010f commit 3a4a248
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkgs/build-support/cc-wrapper/add-flags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,7 @@ if [ "@darwinMinVersion@" ]; then
# but compilers expect it to point to the absolute path.
SDKROOT="$DEVELOPER_DIR/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"

# Set up various library paths since compilers may not support (or may have disabled) finding them in the sysroot.
NIX_CFLAGS_COMPILE_BEFORE_@suffixSalt@+=" -isysroot $SDKROOT"
NIX_CFLAGS_COMPILE_@suffixSalt@+=" -idirafter $SDKROOT/usr/include"
NIX_CFLAGS_COMPILE_@suffixSalt@+=" -iframework $SDKROOT/System/Library/Frameworks"
fi

# That way forked processes will not extend these environment variables again.
Expand Down

0 comments on commit 3a4a248

Please sign in to comment.