| ... | @@ -49,6 +49,7 @@ pub fn build(b: *Builder) !void { | ... | @@ -49,6 +49,7 @@ pub fn build(b: *Builder) !void { |
| 49 | const skip_release_safe = b.option(bool, "skip-release-safe", "Main test suite skips release-safe builds") orelse skip_release; | 49 | const skip_release_safe = b.option(bool, "skip-release-safe", "Main test suite skips release-safe builds") orelse skip_release; |
| 50 | const skip_non_native = b.option(bool, "skip-non-native", "Main test suite skips non-native builds") orelse false; | 50 | const skip_non_native = b.option(bool, "skip-non-native", "Main test suite skips non-native builds") orelse false; |
| 51 | const skip_libc = b.option(bool, "skip-libc", "Main test suite skips tests that link libc") orelse false; | 51 | const skip_libc = b.option(bool, "skip-libc", "Main test suite skips tests that link libc") orelse false; |
| | 52 | const skip_compile_errors = b.option(bool, "skip-compile-errors", "Main test suite skips compile error tests") orelse false; |
| 52 | | 53 | |
| 53 | const only_install_lib_files = b.option(bool, "lib-files-only", "Only install library files") orelse false; | 54 | const only_install_lib_files = b.option(bool, "lib-files-only", "Only install library files") orelse false; |
| 54 | const enable_llvm = b.option(bool, "enable-llvm", "Build self-hosted compiler with LLVM backend enabled") orelse false; | 55 | const enable_llvm = b.option(bool, "enable-llvm", "Build self-hosted compiler with LLVM backend enabled") orelse false; |
| ... | @@ -184,7 +185,9 @@ pub fn build(b: *Builder) !void { | ... | @@ -184,7 +185,9 @@ pub fn build(b: *Builder) !void { |
| 184 | test_step.dependOn(tests.addRunTranslatedCTests(b, test_filter)); | 185 | test_step.dependOn(tests.addRunTranslatedCTests(b, test_filter)); |
| 185 | // tests for this feature are disabled until we have the self-hosted compiler available | 186 | // tests for this feature are disabled until we have the self-hosted compiler available |
| 186 | // test_step.dependOn(tests.addGenHTests(b, test_filter)); | 187 | // test_step.dependOn(tests.addGenHTests(b, test_filter)); |
| 187 | test_step.dependOn(tests.addCompileErrorTests(b, test_filter, modes)); | 188 | if (!skip_compile_errors) { |
| | 189 | test_step.dependOn(tests.addCompileErrorTests(b, test_filter, modes)); |
| | 190 | } |
| 188 | test_step.dependOn(docs_step); | 191 | test_step.dependOn(docs_step); |
| 189 | } | 192 | } |
| 190 | | 193 | |