From 1c36dd2a352704f964098d523e54b6a99061dbf6 Mon Sep 17 00:00:00 2001 From: Alexandre Esteves Date: Tue, 11 Mar 2025 17:18:37 +0000 Subject: [PATCH] Remove -nostdlibinc flag from clang when building for android --- pkgs/build-support/cc-wrapper/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/cc-wrapper/default.nix b/pkgs/build-support/cc-wrapper/default.nix index eadcd5bf0bcc..b0682552b4ed 100644 --- a/pkgs/build-support/cc-wrapper/default.nix +++ b/pkgs/build-support/cc-wrapper/default.nix @@ -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 ''