From 0086b9452adc38ba46de9434b1f0589aaa3e4643 Mon Sep 17 00:00:00 2001 From: Aleix Roca Nonell Date: Wed, 15 Nov 2023 15:25:25 +0100 Subject: [PATCH] Fix llvm postInstall Some llvm versions do not generate the intel and gomp support libraries and the post install script fails because it cannot remove them. This patch makes removal optional. Reviewed-By: Rodrigo Arias Mallo --- pkgs/llvm-ompss2/clang.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/llvm-ompss2/clang.nix b/pkgs/llvm-ompss2/clang.nix index a5f321c..40d5860 100644 --- a/pkgs/llvm-ompss2/clang.nix +++ b/pkgs/llvm-ompss2/clang.nix @@ -122,8 +122,8 @@ in stdenv.mkDerivation rec { # Remove support for GNU and Intel Openmp postInstall = '' - rm $out/lib/libgomp* - rm $out/lib/libiomp* + rm -f $out/lib/libgomp* + rm -f $out/lib/libiomp* ''; # About "-DCLANG_DEFAULT_NANOS6_HOME=${nanos6}", we could specify a default