mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-07 06:14:33 +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 {
|
fn testLinkingStaticLib(b: *Build, opts: Options) *Step {
|
||||||
const test_step = addTestStep(b, "linking-static-lib", opts);
|
const test_step = addTestStep(b, "linking-static-lib", opts);
|
||||||
|
|
||||||
const lib = b.addStaticLibrary(.{
|
const lib = addStaticLibrary(b, "alib", opts);
|
||||||
.name = "alib",
|
|
||||||
.target = opts.target,
|
|
||||||
.optimize = opts.optimize,
|
|
||||||
.use_llvm = opts.use_llvm,
|
|
||||||
.use_lld = false,
|
|
||||||
});
|
|
||||||
addZigSourceBytes(lib,
|
addZigSourceBytes(lib,
|
||||||
\\extern var mod: usize;
|
\\extern var mod: usize;
|
||||||
\\export fn callMe() usize {
|
\\export fn callMe() usize {
|
||||||
|
|
@ -3332,7 +3326,7 @@ fn addStaticLibrary(b: *Build, name: []const u8, opts: Options) *Compile {
|
||||||
.target = opts.target,
|
.target = opts.target,
|
||||||
.optimize = opts.optimize,
|
.optimize = opts.optimize,
|
||||||
.use_llvm = opts.use_llvm,
|
.use_llvm = opts.use_llvm,
|
||||||
.use_lld = true,
|
.use_lld = opts.use_lld,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue