| # Display commands being run. |
| git submodule update --init |
| mkdir -p build && cd build |
| if [[ -z "${REACTOR_BACKEND}" ]]; then |
| # Disable ASAN checks for debug builds to work around Kokoro timeouts that |
| # affect llvm-debug builds. See b/147355576 for more information. |
| if [[ "${BUILD_TYPE}" == "Debug" ]]; then |
| cmake .. "-DSWIFTSHADER_ASAN=${ASAN}" "-DCMAKE_BUILD_TYPE=${BUILD_TYPE}" "-DREACTOR_BACKEND=${REACTOR_BACKEND}" "-DREACTOR_VERIFY_LLVM_IR=1" |
| make -j$(sysctl -n hw.logicalcpu) |
| cd .. # Some tests must be run from project root |