Kokoro: Test that the _other.cc files also build

Change-Id: I908b9250de839435c3b355fb89b0bb72ab821a54
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/48043
Auto-Submit: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
Ben Clayton
2021-04-16 14:43:34 +00:00
committed by Commit Bot service account
parent fe70c75bc5
commit 7687ec1fa3
3 changed files with 19 additions and 11 deletions

View File

@@ -95,6 +95,11 @@ if [ "$BUILD_SYSTEM" == "cmake" ]; then
${SRC_DIR}/test/test-all.sh "${BUILD_DIR}/tint"
hide_cmds
status "Checking _other.cc files also build"
show_cmds
cmake ${SRC_DIR} ${CMAKE_FLAGS} ${COMMON_CMAKE_FLAGS} -DTINT_BUILD_AS_OTHER_OS=1
make --jobs=$(nproc)
hide_cmds
else
status "Unsupported build system: $BUILD_SYSTEM"
exit 1