Remove -nostdlibinc flag from clang when building for android-prebuilt (#389028)

This commit is contained in:
alexfmpe 2025-04-30 03:40:25 +01:00 committed by GitHub
commit c00afdff9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -745,7 +745,7 @@ stdenvNoCC.mkDerivation {
# no `/usr/include`, theres essentially no risk to dropping
# the flag there. See discussion in NixOS/nixpkgs#191152.
#
+ optionalString ((cc.isClang or false) && !(cc.isROCm or false) && !targetPlatform.isDarwin) ''
+ optionalString ((cc.isClang or false) && !(cc.isROCm or false) && !targetPlatform.isDarwin && !targetPlatform.isAndroid) ''
echo " -nostdlibinc" >> $out/nix-support/cc-cflags
''