authorgravatar for s0urc3c0de@web.deS0urc3C0de <s0urc3c0de@web.de> 2020-08-02 13:55:01+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-08-02 17:50:06+00:00
log5ae88e919b2e1e0a519fda1e49c8e83e139cba40
tree9db0da53d254308a178c442d23ce903d8ac3236c
parent6bba7c702b4482c33c1de7414fb145d0dfc40fcc

Add rdynamic option to build.zig


1 files changed, 5 insertions(+), 0 deletions(-)

lib/std/build.zig+5
...@@ -1151,6 +1151,7 @@ pub const LibExeObjStep = struct {...@@ -1151,6 +1151,7 @@ pub const LibExeObjStep = struct {
1151 bundle_compiler_rt: bool,1151 bundle_compiler_rt: bool,
1152 disable_stack_probing: bool,1152 disable_stack_probing: bool,
1153 disable_sanitize_c: bool,1153 disable_sanitize_c: bool,
1154 rdynamic: bool,
1154 c_std: Builder.CStd,1155 c_std: Builder.CStd,
1155 override_lib_dir: ?[]const u8,1156 override_lib_dir: ?[]const u8,
1156 main_pkg_path: ?[]const u8,1157 main_pkg_path: ?[]const u8,
...@@ -1311,6 +1312,7 @@ pub const LibExeObjStep = struct {...@@ -1311,6 +1312,7 @@ pub const LibExeObjStep = struct {
1311 .bundle_compiler_rt = false,1312 .bundle_compiler_rt = false,
1312 .disable_stack_probing = false,1313 .disable_stack_probing = false,
1313 .disable_sanitize_c = false,1314 .disable_sanitize_c = false,
1315 .rdynamic = false,
1314 .output_dir = null,1316 .output_dir = null,
1315 .single_threaded = false,1317 .single_threaded = false,
1316 .installed_path = null,1318 .installed_path = null,
...@@ -1994,6 +1996,9 @@ pub const LibExeObjStep = struct {...@@ -1994,6 +1996,9 @@ pub const LibExeObjStep = struct {
1994 if (self.disable_sanitize_c) {1996 if (self.disable_sanitize_c) {
1995 try zig_args.append("-fno-sanitize-c");1997 try zig_args.append("-fno-sanitize-c");
1996 }1998 }
1999 if (self.rdynamic) {
2000 try zig_args.append("-rdynamic");
2001 }
19972002
1998 if (self.code_model != .default) {2003 if (self.code_model != .default) {
1999 try zig_args.append("-code-model");2004 try zig_args.append("-code-model");