mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
llvmPackages: select version by targetPlatform
This commit is contained in:
parent
b6af78fdf5
commit
ee74ca3aa6
@ -66,7 +66,7 @@ in lib.init bootStages ++ [
|
||||
else if crossSystem.isDarwin
|
||||
then buildPackages.llvmPackages.clang
|
||||
else if crossSystem.useLLVM or false
|
||||
then buildPackages.llvmPackages_8.lldClang
|
||||
then buildPackages.llvmPackages.lldClang
|
||||
else buildPackages.gcc;
|
||||
|
||||
extraNativeBuildInputs = old.extraNativeBuildInputs
|
||||
|
@ -9946,7 +9946,17 @@ in
|
||||
llvm_6 = llvmPackages_6.llvm;
|
||||
llvm_5 = llvmPackages_5.llvm;
|
||||
|
||||
llvmPackages = recurseIntoAttrs llvmPackages_7;
|
||||
llvmPackages = recurseIntoAttrs (with targetPlatform;
|
||||
if isDarwin then
|
||||
llvmPackages_7
|
||||
else if isFreeBSD then
|
||||
llvmPackages_7
|
||||
else if isLinux then
|
||||
llvmPackages_7
|
||||
else if isWasm then
|
||||
llvmPackages_8
|
||||
else
|
||||
llvmPackages_latest);
|
||||
|
||||
llvmPackages_5 = callPackage ../development/compilers/llvm/5 {
|
||||
inherit (stdenvAdapters) overrideCC;
|
||||
|
Loading…
Reference in New Issue
Block a user