Skip to content

Commit 84e512f

Browse files
authored
Update llvm.spec
1 parent 7edc998 commit 84e512f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm.spec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ ninja -v %{makeprocesses} install
7070

7171
#Create libomp symlink
7272
host_triple=$(gcc -dumpmachine)
73-
ln -s ${host_triple}/libomp.so %{i}/lib64/libomp.so
7473

7574
BINDINGS_PATH=%{i}/lib64/python%{cms_python3_major_minor_version}/site-packages
7675
PKG_INFO_FILE=$BINDINGS_PATH/clang-%{realversion}-py%{cms_python3_major_minor_version}.egg-info/PKG-INFO
@@ -92,6 +91,8 @@ rm -f %{i}/bin/set-xcode-analyzer
9291

9392
%if 0%{!?use_system_gcc:1}
9493
pushd %{i}/bin
94+
[ -e clang++.cfg ] && exit 1
95+
[ -e clang.cfg ] && exit 1
9596
echo "--gcc-toolchain=$GCC_ROOT" > clang++.cfg
9697
echo "--target=$host_triple" >> clang++.cfg
9798
ln -s clang++.cfg clang.cfg

0 commit comments

Comments
 (0)