| author | |
| committer | |
| log | 15b2bae517c54db22604eb303645d2f0023768e0 |
| tree | abf748223f710441c0baa15269511ce13736e662 |
| parent | 800a4a6cebf363c8ba3d1fcfff55db8bfb71f731 |
1 files changed, 2 insertions(+), 1 deletions(-)
src/Compilation.zig+2-1| ... | ... | @@ -417,7 +417,8 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { |
| 417 | 417 | return error.MachineCodeModelNotSupported; |
| 418 | 418 | } |
| 419 | 419 | |
| 420 | const link_libc = options.link_libc or target_util.osRequiresLibC(options.target); | |
| 420 | const link_libc = options.link_libc or | |
| 421 | (is_exe_or_dyn_lib and target_util.osRequiresLibC(options.target)); | |
| 421 | 422 | |
| 422 | 423 | const must_dynamic_link = dl: { |
| 423 | 424 | if (target_util.cannotDynamicLink(options.target)) |