cc-wrapper: autofix code style (#402978)

This commit is contained in:
Jörg Thalheim
2025-04-30 08:34:19 +02:00
committed by GitHub

View File

@@ -745,9 +745,17 @@ 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 && !targetPlatform.isAndroid) ''
echo " -nostdlibinc" >> $out/nix-support/cc-cflags
''
+
optionalString
(
(cc.isClang or false)
&& !(cc.isROCm or false)
&& !targetPlatform.isDarwin
&& !targetPlatform.isAndroid
)
''
echo " -nostdlibinc" >> $out/nix-support/cc-cflags
''
##
## Man page and info support