mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
test/link/elf: enable our ELF archiver
This commit is contained in:
parent
8142925c7e
commit
205f8214d8
1 changed files with 2 additions and 8 deletions
|
|
@ -1858,13 +1858,7 @@ fn testLinkingObj(b: *Build, opts: Options) *Step {
|
|||
fn testLinkingStaticLib(b: *Build, opts: Options) *Step {
|
||||
const test_step = addTestStep(b, "linking-static-lib", opts);
|
||||
|
||||
const lib = b.addStaticLibrary(.{
|
||||
.name = "alib",
|
||||
.target = opts.target,
|
||||
.optimize = opts.optimize,
|
||||
.use_llvm = opts.use_llvm,
|
||||
.use_lld = false,
|
||||
});
|
||||
const lib = addStaticLibrary(b, "alib", opts);
|
||||
addZigSourceBytes(lib,
|
||||
\\extern var mod: usize;
|
||||
\\export fn callMe() usize {
|
||||
|
|
@ -3332,7 +3326,7 @@ fn addStaticLibrary(b: *Build, name: []const u8, opts: Options) *Compile {
|
|||
.target = opts.target,
|
||||
.optimize = opts.optimize,
|
||||
.use_llvm = opts.use_llvm,
|
||||
.use_lld = true,
|
||||
.use_lld = opts.use_lld,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue