From 3f6950c1f05c79c9b15b7342350f360b95f97980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Bon=C3=A9?= Date: Wed, 21 May 2025 18:00:27 +0200 Subject: [PATCH] ompss: unset flags when intel for real this time --- pkgs/llvm-ompss2/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/llvm-ompss2/default.nix b/pkgs/llvm-ompss2/default.nix index 19bbe15..eb7de85 100644 --- a/pkgs/llvm-ompss2/default.nix +++ b/pkgs/llvm-ompss2/default.nix @@ -42,6 +42,13 @@ let resetIntelCCFlags = let tconf = builtins.replaceStrings ["-"] ["_"] targetConfig; in writeShellScript "remove-intel.sh" '' if [ "$NIX_CC_WRAPPER_INTEL" = 1 ]; then + unset NIX_CFLAGS_COMPILE_${tconf} + unset NIX_CFLAGS_COMPILE_BEFORE_${tconf} + unset NIX_CFLAGS_LINK_${tconf} + unset NIX_CXXSTDLIB_COMPILE_${tconf} + unset NIX_CXXSTDLIB_LINK_${tconf} + unset NIX_GNATFLAGS_COMPILE_${tconf} + unset NIX_CC_WRAPPER_FLAGS_SET_${tconf} unset NIX_BINTOOLS_WRAPPER_FLAGS_${tconf} fi