cc-wrapper: autofix code style
Issue introduced in https://github.com/NixOS/nixpkgs/pull/389028
This commit is contained in:
parent
920a79ee9b
commit
b4d31d66ef
@ -745,9 +745,17 @@ 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 && !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
|
||||
|
Loading…
x
Reference in New Issue
Block a user