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
16 changes: 12 additions & 4 deletions buildbot/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,18 @@ done && shift $(($OPTIND - 1))
# we're in llvm.obj dir
BUILD_DIR=${PWD}

cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS=clang \
CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS=clang \
-DLLVM_EXTERNAL_SYCL_SOURCE_DIR=../llvm.src/sycl \
-DLLVM_EXTERNAL_LLVM_SPIRV_SOURCE_DIR=../llvm.src/llvm-spirv \
-DLLVM_TOOL_SYCL_BUILD=ON -DLLVM_TOOL_LLVM_SPIRV_BUILD=ON \
-DOpenCL_INCLUDE_DIR="OpenCL-Headers" \
-DOpenCL_LIBRARY="OpenCL-ICD-Loader/build/lib/libOpenCL.so" \
../llvm.src/llvm
-DOpenCL_INCLUDE_DIR=OpenCL-Headers \
-DOpenCL_LIBRARY=OpenCL-ICD-Loader/build/lib/libOpenCL.so \
../llvm.src/llvm"

cmake $CMAKE_ARGS
# Do clean build if configure failed due to any reason
if [ $? -ne 0 ]; then
rm -rf *
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rm -rf BUILD_DIR/* ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

force clean build is something goes wrong

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean add $BUILD_DIR/ before * to avoid errors in the future.

`dirname $0`/dependency.sh -b $BRANCH -n $BUILD_NUMBER -r $PR_NUMBER
cmake $CMAKE_ARGS
fi