aboutsummaryrefslogtreecommitdiff
path: root/src/link.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/link.zig')
-rw-r--r--src/link.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/link.zig b/src/link.zig
index 2b3ce51667..4c4915441d 100644
--- a/src/link.zig
+++ b/src/link.zig
@@ -10,7 +10,7 @@ const wasi_libc = @import("wasi_libc.zig");
const Air = @import("Air.zig");
const Allocator = std.mem.Allocator;
-const Cache = @import("Cache.zig");
+const Cache = std.Build.Cache;
const Compilation = @import("Compilation.zig");
const LibCInstallation = @import("libc_installation.zig").LibCInstallation;
const Liveness = @import("Liveness.zig");
@@ -25,6 +25,8 @@ pub const SystemLib = struct {
weak: bool = false,
};
+pub const SortSection = enum { name, alignment };
+
pub const CacheMode = enum { incremental, whole };
pub fn hashAddSystemLibs(
@@ -159,6 +161,7 @@ pub const Options = struct {
disable_lld_caching: bool,
is_test: bool,
hash_style: HashStyle,
+ sort_section: ?SortSection,
major_subsystem_version: ?u32,
minor_subsystem_version: ?u32,
gc_sections: ?bool = null,