Skip to content

Commit

Permalink
[SYCL] do clean build if incremental cmake command failed
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Lazarev <vladimir.lazarev@intel.com>
  • Loading branch information
vladimirlaz committed Mar 29, 2019
1 parent f33cf18 commit 1b96030
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions buildbot/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,17 @@ 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 -f ${BUILD_DIR}/CMakeCache.txt
cmake ${CMAKE_ARGS}
fi

0 comments on commit 1b96030

Please sign in to comment.