Skip to content

Commit e0d826a

Browse files
sarnexigcbot
authored andcommitted
Fix build with libopencl-clang2
CMake isn't set up to search for libopencl-clang2.so. To minimize changes to CMake, just symlink the library for now. Confirmed working [here](https://github.com/sarnex/intel-graphics-compiler/actions/runs/12264262733).
1 parent ae212c4 commit e0d826a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/buildIGC.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ 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
85+
# Symlink to a library name CMake is set up to handle until either
86+
# CMake is updated or the library name is changed back.
87+
ln -s /usr/local/lib/libopencl-clang2.so /usr/local/lib/libopencl-clang.so
88+
fi
8489
echo "[Build Status] OpenCL Clang INSTALLED"
8590

8691

0 commit comments

Comments
 (0)