Commit 1c36dd2a authored by Alexandre Esteves's avatar Alexandre Esteves
Browse files

Remove -nostdlibinc flag from clang when building for android

parent 623b6129
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -646,7 +646,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
    ''