Skip to content

Commit 0f80995

Browse files
authored
Add 'keep going' option to CMake CI builds (#8302)
These are primarily used in CI, where it's useful to learn what all the failures are up front. We already have the `--keep-going` option set in the Bazel build.
1 parent 8bf3c81 commit 0f80995

File tree

17 files changed

+25
-25
lines changed

17 files changed

+25
-25
lines changed

build_tools/cmake/build_android.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ cd build-host
5151
-DIREE_BUILD_TESTS=OFF \
5252
-DIREE_BUILD_BENCHMARKS=OFF \
5353
-DIREE_BUILD_SAMPLES=OFF
54-
"${CMAKE_BIN}" --build . --target install
54+
"${CMAKE_BIN}" --build . --target install -- -k 0
5555
# --------------------------------------------------------------------------- #
5656

5757
cd "${ROOT_DIR}"
@@ -78,4 +78,4 @@ cd build-android
7878
-DIREE_BUILD_COMPILER=OFF \
7979
-DIREE_BUILD_TESTS=ON \
8080
-DIREE_BUILD_SAMPLES=OFF
81-
"${CMAKE_BIN}" --build .
81+
"${CMAKE_BIN}" --build . -- -k 0

build_tools/cmake/build_android_benchmark.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ cd build-host
6666
-DIREE_BUILD_BENCHMARKS=ON \
6767
-DIREE_BUILD_SAMPLES=OFF
6868

69-
"${CMAKE_BIN}" --build . --target install
69+
"${CMAKE_BIN}" --build . --target install -- -k 0
7070
# Also generate artifacts for benchmarking on Android.
71-
"${CMAKE_BIN}" --build . --target iree-benchmark-suites
71+
"${CMAKE_BIN}" --build . --target iree-benchmark-suites -- -k 0
7272
# --------------------------------------------------------------------------- #
7373

7474
# --------------------------------------------------------------------------- #
@@ -94,7 +94,7 @@ cd build-android
9494
-DIREE_BUILD_COMPILER=OFF \
9595
-DIREE_BUILD_TESTS=ON \
9696
-DIREE_BUILD_SAMPLES=OFF
97-
"${CMAKE_BIN}" --build . --target iree-benchmark-module
97+
"${CMAKE_BIN}" --build . --target iree-benchmark-module -- -k 0
9898

9999
# --------------------------------------------------------------------------- #
100100
# Build for the target (Android) with tracing.
@@ -120,4 +120,4 @@ cd build-android-trace
120120
-DIREE_BUILD_COMPILER=OFF \
121121
-DIREE_BUILD_TESTS=ON \
122122
-DIREE_BUILD_SAMPLES=OFF
123-
"${CMAKE_BIN}" --build . --target iree-benchmark-module
123+
"${CMAKE_BIN}" --build . --target iree-benchmark-module -- -k 0

build_tools/cmake/build_host_install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ cd build-host
3333
-DCMAKE_INSTALL_PREFIX=./install \
3434
-DIREE_BUILD_TESTS=OFF \
3535
-DIREE_BUILD_SAMPLES=OFF
36-
"${CMAKE_BIN?}" --build . --target install
36+
"${CMAKE_BIN?}" --build . --target install -- -k 0

build_tools/cmake/build_riscv.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ fi
4545
-DIREE_BUILD_TESTS=OFF \
4646
-DIREE_BUILD_SAMPLES=OFF \
4747
"${ROOT_DIR?}"
48-
"${CMAKE_BIN?}" --build "${BUILD_HOST_DIR?}" --target install
48+
"${CMAKE_BIN?}" --build "${BUILD_HOST_DIR?}" --target install -- -k 0
4949
# --------------------------------------------------------------------------- #
5050

5151

@@ -89,4 +89,4 @@ fi
8989

9090
args_str=$(IFS=' ' ; echo "${args[*]}")
9191
"${CMAKE_BIN?}" ${args_str} "${ROOT_DIR?}"
92-
"${CMAKE_BIN?}" --build "${BUILD_RISCV_DIR?}"
92+
"${CMAKE_BIN?}" --build "${BUILD_RISCV_DIR?}" -- -k 0

build_tools/cmake/build_runtime.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ cd build-runtime
3131
"${CMAKE_BIN?}" -G Ninja .. \
3232
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
3333
-DIREE_BUILD_COMPILER=OFF
34-
"${CMAKE_BIN?}" --build .
34+
"${CMAKE_BIN?}" --build . -- -k 0

build_tools/cmake/build_runtime_emscripten.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ emcmake "${CMAKE_BIN?}" -G Ninja .. \
4848
-DIREE_BUILD_SAMPLES=ON
4949

5050
# TODO(scotttodd): expand this list of targets
51-
"${CMAKE_BIN?}" --build . --target iree_samples_simple_embedding_simple_embedding_vmvx_sync
51+
"${CMAKE_BIN?}" --build . --target iree_samples_simple_embedding_simple_embedding_vmvx_sync -- -k 0

build_tools/cmake/build_runtime_small.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ cd build-runtime-small
3232
-DCMAKE_BUILD_TYPE=MinSizeRel \
3333
-DIREE_SIZE_OPTIMIZED=ON \
3434
-DIREE_BUILD_COMPILER=OFF
35-
"${CMAKE_BIN?}" --build .
35+
"${CMAKE_BIN?}" --build . -- -k 0

build_tools/cmake/build_tracing.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ cd build-tracing
3535
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
3636
-DIREE_ENABLE_RUNTIME_TRACING=ON \
3737
-DIREE_BUILD_COMPILER=OFF
38-
"${CMAKE_BIN?}" --build .
38+
"${CMAKE_BIN?}" --build . -- -k 0

build_tools/cmake/rebuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ CMAKE_ARGS=(
5151
)
5252

5353
"$CMAKE_BIN" "${CMAKE_ARGS[@]?}" "$@" ..
54-
"$CMAKE_BIN" --build .
54+
"$CMAKE_BIN" --build . -- -k 0

build_tools/cmake/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ echo "******************** Running main project ctests ************************"
7171
ctest --timeout 900 --output-on-failure --label-exclude "${label_exclude_regex?}"
7272

7373
echo "******************** llvm-external-projects tests ***********************"
74-
cmake --build . --target check-iree-dialects
74+
cmake --build . --target check-iree-dialects -- -k 0

0 commit comments

Comments
 (0)