From 2d637cc88c04161333bcd59bddc39936935a7625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Bon=C3=A9?= Date: Mon, 19 May 2025 19:33:37 +0200 Subject: [PATCH] llvm: disable hardening --- 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..5ab31c2 100644 --- a/pkgs/llvm-ompss2/default.nix +++ b/pkgs/llvm-ompss2/default.nix @@ -58,7 +58,9 @@ in wrapCCWith { wrap clang++ $wrapper $ccPath/clang++ - '' + optionalString (openmp != null) '' + echo "" > $out/nix-support/add-hardening.sh + + '' + lib.optionalString (openmp != null) '' echo "export OPENMP_RUNTIME=${ompname}" >> $out/nix-support/cc-wrapper-hook '' + optionalString (ompss2rt != null) '' echo "export OMPSS2_RUNTIME=${rtname}" >> $out/nix-support/cc-wrapper-hook