mirror of
https://github.com/ziglang/zig.git
synced 2025-12-28 09:03:21 +00:00
Merge branch 'build-obj-no-link' of git://github.com/mattnite/zig into mattnite-build-obj-no-link
This commit is contained in:
commit
a96b6ad83f
@ -531,6 +531,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