Commit fa54cb14 authored by Artturin's avatar Artturin
Browse files

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
```
parent 021da9bf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
''