authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-09-28 19:28:06+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-09-28 19:28:06+02:00
logcdd4dbfe32b198c7dd2fcd63e9f65778e40e43af
tree050b091e59f0b1ba578dfdcaf2e4e3c8274578ef
parent89c2151a97ca684924c5b29c0b78367e5ed11bcd

test: add x86_64-linux-musl-no-lld as a test target


1 files changed, 12 insertions(+), 1 deletions(-)

test/tests.zig+12-1
......@@ -196,6 +196,15 @@ const test_targets = blk: {
196196 },
197197 .link_libc = true,
198198 },
199 .{
200 .target = .{
201 .cpu_arch = .x86_64,
202 .os_tag = .linux,
203 .abi = .musl,
204 },
205 .link_libc = true,
206 .use_lld = false,
207 },
199208
200209 .{
201210 .target = .{
......@@ -1031,6 +1040,7 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
10311040 "-selfhosted"
10321041 else
10331042 "";
1043 const use_lld = if (test_target.use_lld == false) "-no-lld" else "";
10341044
10351045 these_tests.addIncludePath(.{ .path = "test" });
10361046
......@@ -1039,13 +1049,14 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
10391049 these_tests.stack_size = 2 * 1024 * 1024;
10401050 }
10411051
1042 const qualified_name = b.fmt("{s}-{s}-{s}{s}{s}{s}", .{
1052 const qualified_name = b.fmt("{s}-{s}-{s}{s}{s}{s}{s}", .{
10431053 options.name,
10441054 triple_txt,
10451055 @tagName(test_target.optimize_mode),
10461056 libc_suffix,
10471057 single_threaded_suffix,
10481058 backend_suffix,
1059 use_lld,
10491060 });
10501061
10511062 if (test_target.target.ofmt == std.Target.ObjectFormat.c) {