From 02886a8b93ccfe652ac5797784bddc398047f7eb Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 23 Sep 2020 11:01:15 -0700 Subject: stage2: support rpaths --- 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 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.* = .{ -- cgit v1.2.3