aboutsummaryrefslogtreecommitdiff
path: root/src/link.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-05-02 17:34:21 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-05-02 17:34:21 -0400
commit24a9a42966dc9c0654314ad99866699208776025 (patch)
tree338bbf5f3aa39700e08eda107194b3ce93958059 /src/link.cpp
parent7c236f6dd8194500f459b48621e2eb1997563caf (diff)
downloadzig-24a9a42966dc9c0654314ad99866699208776025.tar.gz
zig-24a9a42966dc9c0654314ad99866699208776025.zip
add safe release build mode
closes #288
Diffstat (limited to 'src/link.cpp')
-rw-r--r--src/link.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/link.cpp b/src/link.cpp
index 5e1d2cce3a..09bea8a999 100644
--- a/src/link.cpp
+++ b/src/link.cpp
@@ -37,7 +37,7 @@ static Buf *build_o(CodeGen *parent_gen, const char *oname) {
os_path_join(parent_gen->zig_std_special_dir, source_basename, full_path);
ZigTarget *child_target = parent_gen->is_native_target ? nullptr : &parent_gen->zig_target;
- CodeGen *child_gen = codegen_create(full_path, child_target, OutTypeObj);
+ CodeGen *child_gen = codegen_create(full_path, child_target, OutTypeObj, parent_gen->build_mode);
child_gen->link_libc = parent_gen->link_libc;
child_gen->link_libs.resize(parent_gen->link_libs.length);
@@ -50,8 +50,6 @@ static Buf *build_o(CodeGen *parent_gen, const char *oname) {
codegen_set_cache_dir(child_gen, parent_gen->cache_dir);
- codegen_set_is_release(child_gen, parent_gen->is_release_build);
-
codegen_set_strip(child_gen, parent_gen->strip_debug_symbols);
codegen_set_is_static(child_gen, parent_gen->is_static);