| author | |
| committer | |
| log | e798a3a7796892427ac4561839a35286108bbf6c |
| tree | f02d1ed73189a44fbdaf9622762a2fa0519c7b4a |
| parent | 5cd548e53081428d0e6b4a6b5a305317052c133a |
2 files changed, 5 insertions(+), 1 deletions(-)
src/Compilation.zig+3-1| ... | ... | @@ -2800,7 +2800,9 @@ pub fn performAllTheWork( |
| 2800 | 2800 | if (comp.job_queued_compiler_rt_lib) { |
| 2801 | 2801 | comp.job_queued_compiler_rt_lib = false; |
| 2802 | 2802 | |
| 2803 | if (use_stage1) { | |
| 2803 | // I have disabled the multi-threaded compiler-rt for now until | |
| 2804 | // the threading deadlock is resolved. | |
| 2805 | if (use_stage1 or true) { | |
| 2804 | 2806 | // stage1 LLVM backend uses the global context and thus cannot be used in |
| 2805 | 2807 | // a multi-threaded context. |
| 2806 | 2808 | buildCompilerRtOneShot(comp, .Lib, &comp.compiler_rt_lib); |
src/compiler_rt.zig+2| ... | ... | @@ -69,6 +69,7 @@ pub fn buildCompilerRtLib(comp: *Compilation, progress_node: *std.Progress.Node) |
| 69 | 69 | .main_pkg = null, |
| 70 | 70 | .output_mode = .Lib, |
| 71 | 71 | .link_mode = .Static, |
| 72 | .function_sections = true, | |
| 72 | 73 | .thread_pool = comp.thread_pool, |
| 73 | 74 | .libc_installation = comp.bin_file.options.libc_installation, |
| 74 | 75 | .emit_bin = emit_bin, |
| ... | ... | @@ -186,6 +187,7 @@ fn buildObject(comp: *Compilation, src_basename: []const u8, out: *?CRTFile) !vo |
| 186 | 187 | .emit_bin = emit_bin, |
| 187 | 188 | .optimize_mode = comp.compilerRtOptMode(), |
| 188 | 189 | .link_mode = .Static, |
| 190 | .function_sections = true, | |
| 189 | 191 | .want_sanitize_c = false, |
| 190 | 192 | .want_stack_check = false, |
| 191 | 193 | .want_red_zone = comp.bin_file.options.red_zone, |