rustc: fix for structured attrs
This commit is contained in:
parent
b92fc0fba4
commit
823b96a52b
@ -9,7 +9,7 @@
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (stdenv.lib) optional optionalString;
|
||||
inherit (stdenv.lib) optionals optional optionalString;
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
|
||||
llvmSharedForBuild = pkgsBuildBuild.llvm_9.override { enableSharedLibraries = true; };
|
||||
@ -83,12 +83,12 @@ in stdenv.mkDerivation rec {
|
||||
"${setBuild}.cxx=${cxxForBuild}"
|
||||
"${setHost}.cxx=${cxxForHost}"
|
||||
"${setTarget}.cxx=${cxxForTarget}"
|
||||
] ++ optional (!withBundledLLVM) [
|
||||
] ++ optionals (!withBundledLLVM) [
|
||||
"--enable-llvm-link-shared"
|
||||
"${setBuild}.llvm-config=${llvmSharedForBuild}/bin/llvm-config"
|
||||
"${setHost}.llvm-config=${llvmSharedForHost}/bin/llvm-config"
|
||||
"${setTarget}.llvm-config=${llvmSharedForTarget}/bin/llvm-config"
|
||||
] ++ optional stdenv.isLinux [
|
||||
] ++ optionals stdenv.isLinux [
|
||||
"--enable-profiler" # build libprofiler_builtins
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user