From 0c1d610015e04c96508750e95b2f88408ded8843 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Tue, 23 Nov 2021 15:59:49 +0100 Subject: zld: handle -current_version and -compatibility_version and transfer them correctly to the generated dylib as part of the dylib id load command. --- src/Compilation.zig | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Compilation.zig') diff --git a/src/Compilation.zig b/src/Compilation.zig index e23b6a12e4..48899f6f6e 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -758,6 +758,7 @@ pub const InitOptions = struct { image_base_override: ?u64 = null, self_exe_path: ?[]const u8 = null, version: ?std.builtin.Version = null, + compatibility_version: ?std.builtin.Version = null, libc_installation: ?*const LibCInstallation = null, machine_code_model: std.builtin.CodeModel = .default, clang_preprocessor_mode: ClangPreprocessorMode = .no, @@ -1439,6 +1440,7 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { .extra_lld_args = options.lld_argv, .soname = options.soname, .version = options.version, + .compatibility_version = options.compatibility_version, .libc_installation = libc_dirs.libc_installation, .pic = pic, .pie = pie, -- cgit v1.2.3