From ef5e98e06d395a578bfb5bcd1a0efdc892c02050 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Wed, 16 Jun 2021 19:30:43 +0200 Subject: [PATCH] icc2021: fix wrapper names and ldflags --- bsc/intel-compiler/wrapper2021.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bsc/intel-compiler/wrapper2021.nix b/bsc/intel-compiler/wrapper2021.nix index b1c6185..6802fa2 100644 --- a/bsc/intel-compiler/wrapper2021.nix +++ b/bsc/intel-compiler/wrapper2021.nix @@ -14,13 +14,14 @@ in wrapCCWith rec { echo "-B${gcc.cc}/lib/gcc/${targetConfig}/${gcc.version}" >> $out/nix-support/cc-cflags echo "-isystem ${iccUnwrapped}/include" >> $out/nix-support/cc-cflags echo "-isystem ${iccUnwrapped}/include/icc" >> $out/nix-support/cc-cflags + + echo "-L${iccUnwrapped}/lib" >> $out/nix-support/cc-ldflags 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 - # Create the wrappers for icc and icpc + # Create the wrappers for icx* + wrap lld $wrapper $ccPath/lld wrap icx $wrapper $ccPath/icx - wrap icx $wrapper $ccPath/icpx - wrap icx $wrapper $ccPath/clang - wrap icx $wrapper $ccPath/clang++ + wrap icpx $wrapper $ccPath/icpx ''; }