aboutsummaryrefslogtreecommitdiff
path: root/test/tests.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2023-09-28 19:28:06 +0200
committerJakub Konka <kubkon@jakubkonka.com>2023-09-28 19:28:06 +0200
commitcdd4dbfe32b198c7dd2fcd63e9f65778e40e43af (patch)
tree050b091e59f0b1ba578dfdcaf2e4e3c8274578ef /test/tests.zig
parent89c2151a97ca684924c5b29c0b78367e5ed11bcd (diff)
downloadzig-cdd4dbfe32b198c7dd2fcd63e9f65778e40e43af.tar.gz
zig-cdd4dbfe32b198c7dd2fcd63e9f65778e40e43af.zip
test: add x86_64-linux-musl-no-lld as a test target
Diffstat (limited to 'test/tests.zig')
-rw-r--r--test/tests.zig13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/tests.zig b/test/tests.zig
index 03a5c67895..cc0d8e9b6a 100644
--- a/test/tests.zig
+++ b/test/tests.zig
@@ -196,6 +196,15 @@ const test_targets = blk: {
},
.link_libc = true,
},
+ .{
+ .target = .{
+ .cpu_arch = .x86_64,
+ .os_tag = .linux,
+ .abi = .musl,
+ },
+ .link_libc = true,
+ .use_lld = false,
+ },
.{
.target = .{
@@ -1031,6 +1040,7 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
"-selfhosted"
else
"";
+ const use_lld = if (test_target.use_lld == false) "-no-lld" else "";
these_tests.addIncludePath(.{ .path = "test" });
@@ -1039,13 +1049,14 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
these_tests.stack_size = 2 * 1024 * 1024;
}
- const qualified_name = b.fmt("{s}-{s}-{s}{s}{s}{s}", .{
+ const qualified_name = b.fmt("{s}-{s}-{s}{s}{s}{s}{s}", .{
options.name,
triple_txt,
@tagName(test_target.optimize_mode),
libc_suffix,
single_threaded_suffix,
backend_suffix,
+ use_lld,
});
if (test_target.target.ofmt == std.Target.ObjectFormat.c) {