Unverified Commit c00afdff authored by alexfmpe's avatar alexfmpe Committed by GitHub
Browse files

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

parents 151efeb9 1c36dd2a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -745,7 +745,7 @@ stdenvNoCC.mkDerivation {
    # no `/usr/include`, there’s 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
    ''