-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustbuild: expose LLVM_PARALLEL_LINK_JOBS #40277
Conversation
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
NB: This is untested, because rebuilding LLVM is a hassle on the machine I'm currently on (and MSVC may ignore it anyway). |
For me, linking LLVM in parallel (-j8 for my number of cores) consumes more than 8 GB of memory, while building it never consumes more than ~2 GB, so it would be very nice to be able to build quickly (in parallel) but not link in parallel. |
@bors: r+ |
📌 Commit 202d8da has been approved by |
Thanks @rkruppe! |
…alexcrichton rustbuild: expose LLVM_PARALLEL_LINK_JOBS This allows limiting the number of linker jobs to avoid swapping when linking LLVM with debug info.
🔒 Merge conflict |
This allows limiting the number of linker jobs to avoid swapping when linking LLVM with debug info.
202d8da
to
58ff4f6
Compare
I have no idea what this "merge conflict" is about, I just rebased without conflicts?! Maybe that unwedges bors ¯\_(ツ)_/¯ |
@bors: r+ |
📌 Commit 58ff4f6 has been approved by |
…alexcrichton rustbuild: expose LLVM_PARALLEL_LINK_JOBS This allows limiting the number of linker jobs to avoid swapping when linking LLVM with debug info.
…alexcrichton rustbuild: expose LLVM_PARALLEL_LINK_JOBS This allows limiting the number of linker jobs to avoid swapping when linking LLVM with debug info.
…alexcrichton rustbuild: expose LLVM_PARALLEL_LINK_JOBS This allows limiting the number of linker jobs to avoid swapping when linking LLVM with debug info.
…alexcrichton rustbuild: expose LLVM_PARALLEL_LINK_JOBS This allows limiting the number of linker jobs to avoid swapping when linking LLVM with debug info.
…alexcrichton rustbuild: expose LLVM_PARALLEL_LINK_JOBS This allows limiting the number of linker jobs to avoid swapping when linking LLVM with debug info.
Rollup of 38 pull requests - Successful merges: #39202, #39820, #39918, #39921, #40092, #40146, #40199, #40225, #40239, #40257, #40259, #40261, #40277, #40278, #40287, #40297, #40311, #40315, #40319, #40324, #40336, #40340, #40344, #40345, #40367, #40369, #40372, #40373, #40379, #40385, #40386, #40389, #40400, #40404, #40410, #40422, #40423, #40424 - Failed merges: #40220, #40329, #40426
Rollup of 38 pull requests - Successful merges: #39202, #39820, #39918, #39921, #40092, #40146, #40199, #40225, #40239, #40257, #40259, #40261, #40277, #40278, #40287, #40297, #40311, #40315, #40319, #40324, #40336, #40340, #40344, #40345, #40367, #40369, #40372, #40373, #40379, #40385, #40386, #40389, #40400, #40404, #40410, #40422, #40423, #40424 - Failed merges: #40220, #40329, #40426
This allows limiting the number of linker jobs to avoid swapping when linking LLVM with debug info.