| ... | ... | @@ -33,9 +33,7 @@ CodeGen *codegen_create(Buf *root_source_dir) { |
| 33 | 33 | g->is_test_build = false; |
| 34 | 34 | g->root_source_dir = root_source_dir; |
| 35 | 35 | g->error_value_count = 1; |
| 36 | | if (ZIG_DYNAMIC_LINKER) { |
| 37 | | g->dynamic_linker = buf_create_from_str(ZIG_DYNAMIC_LINKER); |
| 38 | | } |
| 36 | g->dynamic_linker = buf_create_from_str(ZIG_DYNAMIC_LINKER); |
| 39 | 37 | |
| 40 | 38 | g->libc_lib_dir = buf_create_from_str(ZIG_LIBC_LIB_DIR); |
| 41 | 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 | 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 | 4170 | args.append("-dynamic-linker"); |
| 4173 | 4171 | args.append(buf_ptr(g->dynamic_linker)); |
| 4174 | 4172 | } else { |