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: {...@@ -196,6 +196,15 @@ const test_targets = blk: {
196 },196 },
197 .link_libc = true,197 .link_libc = true,
198 },198 },
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
200 .{209 .{
201 .target = .{210 .target = .{
...@@ -1031,6 +1040,7 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {...@@ -1031,6 +1040,7 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
1031 "-selfhosted"1040 "-selfhosted"
1032 else1041 else
1033 "";1042 "";
1043 const use_lld = if (test_target.use_lld == false) "-no-lld" else "";
10341044
1035 these_tests.addIncludePath(.{ .path = "test" });1045 these_tests.addIncludePath(.{ .path = "test" });
10361046
...@@ -1039,13 +1049,14 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {...@@ -1039,13 +1049,14 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
1039 these_tests.stack_size = 2 * 1024 * 1024;1049 these_tests.stack_size = 2 * 1024 * 1024;
1040 }1050 }
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}", .{
1043 options.name,1053 options.name,
1044 triple_txt,1054 triple_txt,
1045 @tagName(test_target.optimize_mode),1055 @tagName(test_target.optimize_mode),
1046 libc_suffix,1056 libc_suffix,
1047 single_threaded_suffix,1057 single_threaded_suffix,
1048 backend_suffix,1058 backend_suffix,
1059 use_lld,
1049 });1060 });
10501061
1051 if (test_target.target.ofmt == std.Target.ObjectFormat.c) {1062 if (test_target.target.ofmt == std.Target.ObjectFormat.c) {