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