aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-09-23 11:01:15 -0700
committerAndrew Kelley <andrew@ziglang.org>2020-09-23 11:01:15 -0700
commit02886a8b93ccfe652ac5797784bddc398047f7eb (patch)
tree3632552b4d7434277fb0ab88fbfc229ab0585528 /src/Compilation.zig
parentc0b774fbc65e3e406a38d37b02fffda7c5d3df26 (diff)
downloadzig-02886a8b93ccfe652ac5797784bddc398047f7eb.tar.gz
zig-02886a8b93ccfe652ac5797784bddc398047f7eb.zip
stage2: support rpaths
Diffstat (limited to 'src/Compilation.zig')
-rw-r--r--src/Compilation.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig
index 656baa898b..1297341926 100644
--- a/src/Compilation.zig
+++ b/src/Compilation.zig
@@ -316,6 +316,7 @@ pub const InitOptions = struct {
function_sections: ?bool = null,
linker_allow_shlib_undefined: ?bool = null,
linker_bind_global_refs_locally: ?bool = null,
+ each_lib_rpath: ?bool = null,
disable_c_depfile: bool = false,
linker_z_nodelete: bool = false,
linker_z_defs: bool = false,
@@ -714,6 +715,7 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation {
.error_return_tracing = error_return_tracing,
.llvm_cpu_features = llvm_cpu_features,
.is_compiler_rt_or_libc = options.is_compiler_rt_or_libc,
+ .each_lib_rpath = options.each_lib_rpath orelse false,
});
errdefer bin_file.destroy();
comp.* = .{