aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation
diff options
context:
space:
mode:
authorimreallybadatnames™️ <68000899+imreallybadatnames@users.noreply.github.com>2025-04-09 16:16:36 +1100
committerGitHub <noreply@github.com>2025-04-09 05:16:36 +0000
commit7733b5dbe603033a1ed9e8d0146ef7432d5ffd5b (patch)
treec8f2ff9bdd944039b012e05ec30ffd7126e75c88 /src/Compilation
parent227788e6d5025933d6d70086fb939dcf487fee0a (diff)
downloadzig-7733b5dbe603033a1ed9e8d0146ef7432d5ffd5b.tar.gz
zig-7733b5dbe603033a1ed9e8d0146ef7432d5ffd5b.zip
Merge pull request #23501 from imreallybadatnames/master
Step.Compile: use LtoMode enum for lto option
Diffstat (limited to 'src/Compilation')
-rw-r--r--src/Compilation/Config.zig8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/Compilation/Config.zig b/src/Compilation/Config.zig
index bc648ae4ad..b71590f191 100644
--- a/src/Compilation/Config.zig
+++ b/src/Compilation/Config.zig
@@ -48,7 +48,7 @@ use_lib_llvm: bool,
/// and updates the final binary.
use_lld: bool,
c_frontend: CFrontend,
-lto: LtoMode,
+lto: std.zig.LtoMode,
/// WASI-only. Type of WASI execution model ("command" or "reactor").
/// Always set to `command` for non-WASI targets.
wasi_exec_model: std.builtin.WasiExecModel,
@@ -66,8 +66,6 @@ san_cov_trace_pc_guard: bool,
pub const CFrontend = enum { clang, aro };
-pub const LtoMode = enum { none, full, thin };
-
pub const DebugFormat = union(enum) {
strip,
dwarf: std.dwarf.Format,
@@ -105,7 +103,7 @@ pub const Options = struct {
use_lib_llvm: ?bool = null,
use_lld: ?bool = null,
use_clang: ?bool = null,
- lto: ?LtoMode = null,
+ lto: ?std.zig.LtoMode = null,
/// WASI-only. Type of WASI execution model ("command" or "reactor").
wasi_exec_model: ?std.builtin.WasiExecModel = null,
import_memory: ?bool = null,
@@ -288,7 +286,7 @@ pub fn resolve(options: Options) ResolveError!Config {
break :b .clang;
};
- const lto: LtoMode = b: {
+ const lto: std.zig.LtoMode = b: {
if (!use_lld) {
// zig ld LTO support is tracked by
// https://github.com/ziglang/zig/issues/8680