intel: Enable ifort compiler

This commit is contained in:
Rodrigo Arias 2020-07-10 17:04:21 +02:00
parent dc12cbe045
commit a78f0caec9
2 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,8 @@ in wrapCCWith rec {
cc = icc-unwrapped;
extraBuildCommands = ''
echo "-B${gcc.cc}/lib/gcc/${targetConfig}/${gcc.version}" >> $out/nix-support/cc-cflags
echo "-isystem ${icc-unwrapped}/include" >> $out/nix-support/cc-cflags
echo "-isystem ${icc-unwrapped}/include/intel64" >> $out/nix-support/cc-cflags
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
@ -24,5 +26,6 @@ in wrapCCWith rec {
# Create the wrappers for icc and icpc
wrap icc $wrapper $ccPath/icc
wrap icpc $wrapper $ccPath/icpc
wrap ifort $wrapper $ccPath/ifort
'';
}

View File

@ -44,6 +44,7 @@ stdenv.mkDerivation rec {
cp -a bin/intel64/* $out/bin/
cp -a compiler/include/* $out/include/
cp -a compiler/lib/intel64_lin/* $out/lib/
ln -s lib $out/lib_lin
rm $out/lib/*.dbg
popd
'';