gcc: add fallback to condition

```
> pkgsMusl.nix
error: attribute 'useLLVM' missing

$ nix eval -f . pkgsMusl.pkgsStatic.stdenv.targetPlatform.useLLVM
error: attribute 'useLLVM' in selection path 'pkgsMusl.pkgsStatic.stdenv.targetPlatform.useLLVM' not found
```
This commit is contained in:
Artturin
2023-10-07 18:26:49 +03:00
parent 021da9bf62
commit fa54cb146a
@@ -122,7 +122,7 @@ in lib.optionalString (hostPlatform.isSunOS && hostPlatform.is64bit) ''
+ lib.optionalString (targetPlatform != hostPlatform &&
withoutTargetLibc &&
targetPlatform.config == hostPlatform.config &&
(stdenv.cc.isClang || stdenv.targetPlatform.useLLVM)) ''
(stdenv.cc.isClang || stdenv.targetPlatform.useLLVM or false)) ''
export inhibit_libc=true
''