diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-12-14 16:34:47 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-14 16:34:47 -0500 |
| commit | 13a28345bb6da736c3e4f0a65ef709dfb69fb6f3 (patch) | |
| tree | 7ccad1c6922fabdb84d9378c6092a4a6efac050c /test | |
| parent | 0fac47cf28dfc669397a2bb1f661b13915a0ab4c (diff) | |
| parent | 5217da57fc95920be93dda02bc905baffe4ee89d (diff) | |
| download | zig-13a28345bb6da736c3e4f0a65ef709dfb69fb6f3.tar.gz zig-13a28345bb6da736c3e4f0a65ef709dfb69fb6f3.zip | |
Merge pull request #22222 from ianprime0509/git-sha256
zig fetch: add support for SHA-256 Git repositories
Diffstat (limited to 'test')
| -rw-r--r-- | test/tests.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/tests.zig b/test/tests.zig index e123dc1e2b..67725b8184 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -1303,6 +1303,7 @@ const ModuleTestOptions = struct { skip_libc: bool, max_rss: usize = 0, no_builtin: bool = false, + build_options: ?*std.Build.Step.Options = null, }; pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step { @@ -1392,6 +1393,9 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step { .strip = test_target.strip, }); if (options.no_builtin) these_tests.no_builtin = true; + if (options.build_options) |build_options| { + these_tests.root_module.addOptions("build_options", build_options); + } const single_threaded_suffix = if (test_target.single_threaded == true) "-single" else ""; const backend_suffix = if (test_target.use_llvm == true) "-llvm" |
