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 <rodrigo.arias@bsc.es>
This commit is contained in:
Aleix Roca Nonell 2023-11-15 15:25:25 +01:00 committed by Rodrigo Arias Mallo
parent 4111b22f57
commit 0086b9452a

View File

@ -122,8 +122,8 @@ in stdenv.mkDerivation rec {
# Remove support for GNU and Intel Openmp # Remove support for GNU and Intel Openmp
postInstall = '' postInstall = ''
rm $out/lib/libgomp* rm -f $out/lib/libgomp*
rm $out/lib/libiomp* rm -f $out/lib/libiomp*
''; '';
# About "-DCLANG_DEFAULT_NANOS6_HOME=${nanos6}", we could specify a default # About "-DCLANG_DEFAULT_NANOS6_HOME=${nanos6}", we could specify a default