mirror of
https://github.com/ziglang/zig.git
synced 2026-02-11 20:11:23 +00:00
don't invoke linker when just building an object
This commit is contained in:
parent
0fb26b0369
commit
a53becc034
@ -474,6 +474,10 @@ pub const File = struct {
|
||||
try fs.cwd().copyFile(cached_pp_file_path, fs.cwd(), full_out_path, .{});
|
||||
return;
|
||||
}
|
||||
|
||||
if (base.options.output_mode == .Obj)
|
||||
return;
|
||||
|
||||
const use_lld = build_options.have_llvm and base.options.use_lld;
|
||||
if (use_lld and base.options.output_mode == .Lib and base.options.link_mode == .Static) {
|
||||
return base.linkAsArchive(comp);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user