diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2026-02-04 08:59:23 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-04 08:59:23 +0000 |
| commit | 61f3d45fa7cf3993a42ad122d450f5629d704720 (patch) | |
| tree | 7b8783d43193c16e4ef393a175fede50a8fe52dd /src/linker.cpp | |
| parent | 270df36468df8f89e1ac944205272469142c7a65 (diff) | |
| parent | b8276065f9296754d1e76e25d6661b7b5567e3e1 (diff) | |
Merge pull request #6227 from JesseRMeyer/lto-support
Fix LTO on Windows
Diffstat (limited to 'src/linker.cpp')
| -rw-r--r-- | src/linker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linker.cpp b/src/linker.cpp index da7183ff2..e48486d9a 100644 --- a/src/linker.cpp +++ b/src/linker.cpp @@ -331,7 +331,7 @@ try_cross_linking:; gbString lld_lto_flags = gb_string_make(heap_allocator(), ""); defer (gb_string_free(lld_lto_flags)); if (build_context.lto_kind != LTO_None) { - lld_lto_flags = gb_string_append_fmt(lld_lto_flags, "/lldltojobs:%d ", build_context.thread_count); + lld_lto_flags = gb_string_append_fmt(lld_lto_flags, "/opt:lldltojobs=%d ", build_context.thread_count); } switch (build_context.linker_choice) { |