| ... | @@ -33,9 +33,7 @@ CodeGen *codegen_create(Buf *root_source_dir) { | ... | @@ -33,9 +33,7 @@ CodeGen *codegen_create(Buf *root_source_dir) { |
| 33 | g->is_test_build = false; | 33 | g->is_test_build = false; |
| 34 | g->root_source_dir = root_source_dir; | 34 | g->root_source_dir = root_source_dir; |
| 35 | g->error_value_count = 1; | 35 | g->error_value_count = 1; |
| 36 | if (ZIG_DYNAMIC_LINKER) { | 36 | g->dynamic_linker = buf_create_from_str(ZIG_DYNAMIC_LINKER); |
| 37 | g->dynamic_linker = buf_create_from_str(ZIG_DYNAMIC_LINKER); | | |
| 38 | } | | |
| 39 | | 37 | |
| 40 | g->libc_lib_dir = buf_create_from_str(ZIG_LIBC_LIB_DIR); | 38 | g->libc_lib_dir = buf_create_from_str(ZIG_LIBC_LIB_DIR); |
| 41 | g->libc_static_lib_dir = buf_create_from_str(ZIG_LIBC_STATIC_LIB_DIR); | 39 | g->libc_static_lib_dir = buf_create_from_str(ZIG_LIBC_STATIC_LIB_DIR); |
| ... | @@ -4168,7 +4166,7 @@ void codegen_link(CodeGen *g, const char *out_file) { | ... | @@ -4168,7 +4166,7 @@ void codegen_link(CodeGen *g, const char *out_file) { |
| 4168 | args.append(buf_ptr(g->libc_static_lib_dir)); | 4166 | args.append(buf_ptr(g->libc_static_lib_dir)); |
| 4169 | } | 4167 | } |
| 4170 | | 4168 | |
| 4171 | if (g->dynamic_linker) { | 4169 | if (g->dynamic_linker && buf_len(g->dynamic_linker) > 0) { |
| 4172 | args.append("-dynamic-linker"); | 4170 | args.append("-dynamic-linker"); |
| 4173 | args.append(buf_ptr(g->dynamic_linker)); | 4171 | args.append(buf_ptr(g->dynamic_linker)); |
| 4174 | } else { | 4172 | } else { |