diff options
| author | Jesse Meyer <jesse.r.meyer@me.com> | 2026-02-02 15:23:06 -0500 |
|---|---|---|
| committer | Jesse Meyer <jesse.r.meyer@me.com> | 2026-02-03 20:16:20 -0500 |
| commit | a0562dfd6e5cd47217f6cdf5cee2c767a7ba8318 (patch) | |
| tree | 8a593187dab37ac99a995487a76880fe8ccc4a16 | |
| parent | 9eba12948a8e0c1b41cb5a63a4c781025ee61def (diff) | |
Fix lld-link LTO jobs flag syntax on Windows
lld-link doesn't recognize /lldltojobs:N as a standalone flag and
treats it as a file path. Use /opt:lldltojobs=N instead.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
| -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 f369a5a38..7969d776e 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) { |