mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
test: add x86_64-linux-musl-no-lld as a test target
This commit is contained in:
parent
89c2151a97
commit
cdd4dbfe32
@ -196,6 +196,15 @@ const test_targets = blk: {
|
|||||||
},
|
},
|
||||||
.link_libc = true,
|
.link_libc = true,
|
||||||
},
|
},
|
||||||
|
.{
|
||||||
|
.target = .{
|
||||||
|
.cpu_arch = .x86_64,
|
||||||
|
.os_tag = .linux,
|
||||||
|
.abi = .musl,
|
||||||
|
},
|
||||||
|
.link_libc = true,
|
||||||
|
.use_lld = false,
|
||||||
|
},
|
||||||
|
|
||||||
.{
|
.{
|
||||||
.target = .{
|
.target = .{
|
||||||
@ -1031,6 +1040,7 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
|
|||||||
"-selfhosted"
|
"-selfhosted"
|
||||||
else
|
else
|
||||||
"";
|
"";
|
||||||
|
const use_lld = if (test_target.use_lld == false) "-no-lld" else "";
|
||||||
|
|
||||||
these_tests.addIncludePath(.{ .path = "test" });
|
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;
|
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,
|
options.name,
|
||||||
triple_txt,
|
triple_txt,
|
||||||
@tagName(test_target.optimize_mode),
|
@tagName(test_target.optimize_mode),
|
||||||
libc_suffix,
|
libc_suffix,
|
||||||
single_threaded_suffix,
|
single_threaded_suffix,
|
||||||
backend_suffix,
|
backend_suffix,
|
||||||
|
use_lld,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (test_target.target.ofmt == std.Target.ObjectFormat.c) {
|
if (test_target.target.ofmt == std.Target.ObjectFormat.c) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user