Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion scripts/buildIGC.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,15 @@ echo "[Build Status] LLVM_VERSION_PREFERRED = $LLVM_VERSION_PREFERRED"

echo "[Build Status] Prepare install OpenCL Clang"
dpkg -i ./igc-official-release/*.deb
if [ -f "/usr/local/lib/libopencl-clang2.so.$LLVM_VERSION" ] && [ ! -f "/usr/local/lib/libopencl-clang2.so" ]; then
ln -s /usr/local/lib/libopencl-clang2.so.$LLVM_VERSION /usr/local/lib/libopencl-clang2.so
fi
if [ -f "/usr/local/lib/libopencl-clang2.so" ] && [ ! -f "/usr/local/lib/libopencl-clang.so" ]; then
# Symlink to a library name CMake is set up to handle until either
# CMake is updated or the library name is changed back.
ln -s /usr/local/lib/libopencl-clang2.so /usr/local/lib/libopencl-clang.so
fi
ls /usr/local/lib/libopencl-clang*
echo "[Build Status] OpenCL Clang INSTALLED"


Expand All @@ -100,7 +104,7 @@ cd workspace/igc
echo "[Build Status] IGC commit hash below:"
echo "[Build Status] All necessary repository Ready"

CONFIG_VARS="-DIGC_OPTION__LLVM_MODE=Prebuilds -DIGC_OPTION__LLVM_PREFERRED_VERSION=$LLVM_VERSION_PREFERRED -DCCLANG_BUILD_PREBUILDS=ON"
CONFIG_VARS="-DIGC_OPTION__LLVM_MODE=Prebuilds -DIGC_OPTION__LLVM_PREFERRED_VERSION=$LLVM_VERSION_PREFERRED"
case $COMPILER in
"clang")
CONFIG_VARS="$CONFIG_VARS -DCMAKE_C_COMPILER=clang-$LLVM_VERSION -DCMAKE_CXX_COMPILER=clang++-$LLVM_VERSION"
Expand Down
Loading