aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/llvm.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/codegen/llvm.zig')
-rw-r--r--src/codegen/llvm.zig6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig
index 3f9a774ae9..e9559a5117 100644
--- a/src/codegen/llvm.zig
+++ b/src/codegen/llvm.zig
@@ -1053,7 +1053,11 @@ pub const Object = struct {
.is_small = options.is_small,
.time_report = options.time_report,
.tsan = options.sanitize_thread,
- .lto = options.lto != .none,
+ .lto = switch (options.lto) {
+ .none => .None,
+ .thin => .ThinPreLink,
+ .full => .FullPreLink,
+ },
// https://github.com/ziglang/zig/issues/21215
.allow_fast_isel = !comp.root_mod.resolved_target.result.cpu.arch.isMIPS(),
.asm_filename = null,