Skip to content

Commit d59211c

Browse files
[ClangBuilder] Pass -k to make for test-suite runs (#251)
When llvm/llvm-lnt@7688741 enabled using Ninja, it removed the -k flag from make. -k causes make to carry on if there's a build failure. Without this flag, a single compilation failure turns into thousands of missing executables in the final results. As subsequent targets are not built. llvm/llvm-lnt#25 is adding an option to the lnt runner to pass options to the build tool. This PR uses that to pass -k to make to restore the old behaviour on the build bots.
1 parent c072676 commit d59211c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

zorg/buildbot/builders/ClangBuilder.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,9 @@ def _getClangCMakeBuildFactory(
527527
'--test-suite', test_suite_dir,
528528
'--cc', cc,
529529
'--cxx', cxx,
530-
'--use-lit', lit]
530+
'--use-lit', lit,
531+
# Carry on building even if there is a failure.
532+
'--build-tool-options', '"-k"']
531533
# Enable fortran if flang is checked out
532534
if checkout_flang:
533535
fortran_flags = [

0 commit comments

Comments
 (0)