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:
@@ -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
|
||||
''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user