Use last intel compiler 2020 version
This commit is contained in:
parent
8032825765
commit
940c494d8e
@ -5,7 +5,7 @@
|
||||
, icc-unwrapped
|
||||
, wrapCCWith
|
||||
, libstdcxxHook
|
||||
, intel-license
|
||||
, icc-license
|
||||
}:
|
||||
|
||||
let
|
||||
@ -19,7 +19,7 @@ in wrapCCWith rec {
|
||||
echo "-L${gcc.cc}/lib/gcc/${targetConfig}/${gcc.version}" >> $out/nix-support/cc-ldflags
|
||||
echo "-L${gcc.cc.lib}/lib" >> $out/nix-support/cc-ldflags
|
||||
|
||||
echo "export INTEL_LICENSE_FILE=${intel-license}" \
|
||||
echo "export INTEL_LICENSE_FILE=${icc-license}" \
|
||||
>> $out/nix-support/setup-hook
|
||||
|
||||
# Create the wrappers for icc and icpc
|
||||
|
@ -6,11 +6,11 @@
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "2019.1.217";
|
||||
version = "${year}.${v_a}.${v_b}";
|
||||
name = "intel-compiler-${version}";
|
||||
|
||||
# From Arch Linux PKGBUILD
|
||||
dir_nr="16526";
|
||||
dir_nr="16527";
|
||||
year="2020";
|
||||
v_a="1";
|
||||
v_b="217";
|
@ -43,11 +43,15 @@ let
|
||||
enableDebug = false;
|
||||
};
|
||||
|
||||
icc-unwrapped = callPackage ./bsc/intel-compiler/icc.nix {
|
||||
# By default we use Intel compiler 2020 update 1
|
||||
icc-unwrapped = icc2020-unwrapped;
|
||||
icc2020-unwrapped = callPackage ./bsc/intel-compiler/icc2020.nix {
|
||||
};
|
||||
|
||||
# A wrapper script that puts all the flags and environment vars properly and
|
||||
# calls the intel compiler binary
|
||||
icc = callPackage bsc/intel-compiler/default.nix {
|
||||
intel-license = icc-license;
|
||||
inherit icc-unwrapped icc-license;
|
||||
};
|
||||
|
||||
icc-license = callPackage bsc/intel-compiler/license.nix {
|
||||
|
Loading…
Reference in New Issue
Block a user