Skip to content

Commit c00afdf

Browse files
authored
Remove -nostdlibinc flag from clang when building for android-prebuilt (#389028)
2 parents 151efeb + 1c36dd2 commit c00afdf

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
@@ -745,7 +745,7 @@ stdenvNoCC.mkDerivation {
745745
# no `/usr/include`, there’s essentially no risk to dropping
746746
# the flag there. See discussion in NixOS/nixpkgs#191152.
747747
#
748-
+ optionalString ((cc.isClang or false) && !(cc.isROCm or false) && !targetPlatform.isDarwin) ''
748+
+ optionalString ((cc.isClang or false) && !(cc.isROCm or false) && !targetPlatform.isDarwin && !targetPlatform.isAndroid) ''
749749
echo " -nostdlibinc" >> $out/nix-support/cc-cflags
750750
''
751751

0 commit comments

Comments
 (0)