Remove -nostdlibinc flag from clang when building for android-prebuilt (#389028)
This commit is contained in:
commit
c00afdff9d
@ -745,7 +745,7 @@ stdenvNoCC.mkDerivation {
|
|||||||
# no `/usr/include`, there’s essentially no risk to dropping
|
# no `/usr/include`, there’s essentially no risk to dropping
|
||||||
# the flag there. See discussion in NixOS/nixpkgs#191152.
|
# 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
|
echo " -nostdlibinc" >> $out/nix-support/cc-cflags
|
||||||
''
|
''
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user