Skip to content

Commit 9ed3fd0

Browse files
Artem Gindinsonigcbot
authored andcommitted
[Build] Fix OpenCL Clang library links for LLVM 14 builds
Rework earlier approach by linking the library explicitly. Relevant commits: e0d826a, 086a1d5. Clang 15+ configuration issues are still to be resolved.
1 parent 02a96db commit 9ed3fd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/buildIGC.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ echo "[Build Status] LLVM_VERSION_PREFERRED = $LLVM_VERSION_PREFERRED"
8181

8282
echo "[Build Status] Prepare install OpenCL Clang"
8383
dpkg -i ./igc-official-release/*.deb
84-
if [ -f "/usr/local/lib/libopencl-clang2.so" ] && [ ! -f "/usr/local/lib/libopencl-clang.so" ]; then
84+
if [ -f "/usr/local/lib/libopencl-clang2.so.$LLVM_VERSION" ] && [ ! -f "/usr/local/lib/libopencl-clang.so" ]; then
8585
# Symlink to a library name CMake is set up to handle until either
8686
# CMake is updated or the library name is changed back.
8787
ln -s /usr/local/lib/libopencl-clang2.so /usr/local/lib/libopencl-clang.so
@@ -100,7 +100,7 @@ cd workspace/igc
100100
echo "[Build Status] IGC commit hash below:"
101101
echo "[Build Status] All necessary repository Ready"
102102

103-
CONFIG_VARS="-DIGC_OPTION__LLVM_MODE=Prebuilds -DIGC_OPTION__LLVM_PREFERRED_VERSION=$LLVM_VERSION_PREFERRED -DCCLANG_BUILD_PREBUILDS=ON"
103+
CONFIG_VARS="-DIGC_OPTION__LLVM_MODE=Prebuilds -DIGC_OPTION__LLVM_PREFERRED_VERSION=$LLVM_VERSION_PREFERRED"
104104
case $COMPILER in
105105
"clang")
106106
CONFIG_VARS="$CONFIG_VARS -DCMAKE_C_COMPILER=clang-$LLVM_VERSION -DCMAKE_CXX_COMPILER=clang++-$LLVM_VERSION"

0 commit comments

Comments
 (0)