aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2025-07-23 00:23:31 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2025-08-02 09:34:55 +0200
commitbcaae562d6f62b8cff829eab19417b8dfc4a8dcd (patch)
treedcfae251067e1a38f5f88e22af87603420b4c134 /build.zig
parent761857e3f9dae52b474b38bd2800b72e181745ee (diff)
downloadzig-bcaae562d6f62b8cff829eab19417b8dfc4a8dcd.tar.gz
zig-bcaae562d6f62b8cff829eab19417b8dfc4a8dcd.zip
build: add -Dskip-compile-errors option
Skips tests in test/cases/compile_errors.
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 60c4e8f0e4..95c97f29b6 100644
--- a/build.zig
+++ b/build.zig
@@ -90,6 +90,7 @@ pub fn build(b: *std.Build) !void {
const skip_non_native = b.option(bool, "skip-non-native", "Main test suite skips non-native builds") orelse false;
const skip_libc = b.option(bool, "skip-libc", "Main test suite skips tests that link libc") orelse false;
const skip_single_threaded = b.option(bool, "skip-single-threaded", "Main test suite skips tests that are single-threaded") orelse false;
+ const skip_compile_errors = b.option(bool, "skip-compile-errors", "Main test suite skips compile error tests") orelse false;
const skip_translate_c = b.option(bool, "skip-translate-c", "Main test suite skips translate-c tests") orelse false;
const skip_run_translated_c = b.option(bool, "skip-run-translated-c", "Main test suite skips run-translated-c tests") orelse false;
const skip_freebsd = b.option(bool, "skip-freebsd", "Main test suite skips targets with freebsd OS") orelse false;
@@ -418,6 +419,7 @@ pub fn build(b: *std.Build) !void {
try tests.addCases(b, test_cases_step, target, .{
.test_filters = test_filters,
.test_target_filters = test_target_filters,
+ .skip_compile_errors = skip_compile_errors,
.skip_non_native = skip_non_native,
.skip_freebsd = skip_freebsd,
.skip_netbsd = skip_netbsd,