cc-wrapper: autofix code style

Issue introduced in https://github.com/NixOS/nixpkgs/pull/389028
This commit is contained in:
Pol Dellaiera 2025-04-30 08:24:02 +02:00
parent 920a79ee9b
commit b4d31d66ef

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