From 4de42f117a2f5e0cc60d98dcf408ce2caccf4703 Mon Sep 17 00:00:00 2001 From: Aleix Roca Nonell Date: Tue, 22 Jul 2025 12:46:14 +0200 Subject: [PATCH] TEMPORAL CLANG LINKER FIX FOR CROSS --- pkgs/llvm-ompss2/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/llvm-ompss2/default.nix b/pkgs/llvm-ompss2/default.nix index 1b53de3..e735f56 100644 --- a/pkgs/llvm-ompss2/default.nix +++ b/pkgs/llvm-ompss2/default.nix @@ -43,6 +43,7 @@ in wrapCCWith { extraPackages = optional (openmp != null) openmp; extraBuildCommands = '' echo "-target ${targetConfig}" >> $out/nix-support/cc-cflags + #echo "-fuse-ld=lld" >> $out/nix-support/cc-cflags echo "-B${gcc.cc}/lib/gcc/${targetConfig}/${gccVersion}" >> $out/nix-support/cc-cflags echo "-L${gcc.cc}/lib/gcc/${targetConfig}/${gccVersion}" >> $out/nix-support/cc-ldflags echo "-L${gcc.cc.lib}/lib" >> $out/nix-support/cc-ldflags @@ -56,7 +57,8 @@ in wrapCCWith { echo "--gcc-toolchain=${gcc}" >> $out/nix-support/cc-cflags - wrap clang++ $wrapper $ccPath/clang++ + wrap ${targetConfig}clang++ $wrapper $ccPath/clang++ + wrap ${targetConfig}clang $wrapper $ccPath/clang '' + optionalString (openmp != null) '' echo "export OPENMP_RUNTIME=${ompname}" >> $out/nix-support/cc-wrapper-hook