mirror of
https://gitee.com/openharmony/third_party_spirv-tools
synced 2024-11-27 01:21:25 +00:00
Since g++-4.9 has an ICE occasionally in travis add a retry.
Try to re-run the build with ninja -j 1 if the build fails, this should reduce the number of build failures we see.
This commit is contained in:
parent
2a790fbc6d
commit
383c83729e
@ -52,7 +52,11 @@ before_script:
|
||||
script:
|
||||
- mkdir build && cd build
|
||||
- cmake -GNinja -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
|
||||
- ninja
|
||||
# Sometimes g++-4.9 flakes with an ICE. This may be an OOM thing when
|
||||
# expanding many templates.
|
||||
# If we fail the build the first time, then try to continue in
|
||||
# single-process mode.
|
||||
- ninja || ninja -j 1
|
||||
- ./UnitSPIRV --gtest_break_on_failure
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user