Skip to content

Commit 1c36dd2

Browse files
committed
Remove -nostdlibinc flag from clang when building for android
1 parent 623b612 commit 1c36dd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkgs/build-support/cc-wrapper/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ stdenvNoCC.mkDerivation {
646646
# no `/usr/include`, there’s essentially no risk to dropping
647647
# the flag there. See discussion in NixOS/nixpkgs#191152.
648648
#
649-
+ optionalString ((cc.isClang or false) && !(cc.isROCm or false) && !targetPlatform.isDarwin) ''
649+
+ optionalString ((cc.isClang or false) && !(cc.isROCm or false) && !targetPlatform.isDarwin && !targetPlatform.isAndroid) ''
650650
echo " -nostdlibinc" >> $out/nix-support/cc-cflags
651651
''
652652

0 commit comments

Comments
 (0)