Uh oh!
There was an error while loading. Please reload this page.
rustbuild: Build jemalloc and libbacktrace only once (take 2) - #39329
Conversation
There was a problem hiding this comment.
Yeah I believe you're right in that this may break cross compiles. Perhaps !cfg!(stage0) && some_stamp_file.exists() could be checked here? That "stamp" file could be created at the end of the build.
bors
commented
Jan 27, 2017
☔ The latest upstream changes (presumably #39252) made this pull request unmergeable. Please resolve the merge conflicts. |
This is exactly what I want to avoid - redoing The best solution is what the previous PR does - running |
alexcrichton
commented
Jan 29, 2017
Yeah |
petrochenkov
commented
Jan 30, 2017
Restored the solution from #38583, it's automatically correct regardless of rustbuild configuration or cross-compilation intricacies. |
alexcrichton
commented
Jan 31, 2017
@petrochenkov I've mentioned before though that this approach is empirically incorrect? For a number of reasons:
|
petrochenkov
commented
Jan 31, 2017
Ok, those are valid reasons. I'll have to move |
petrochenkov
commented
Jan 31, 2017
Actually, nevermind. This is still much faster than building libbacktrace and jemalloc. |
alexcrichton
commented
Feb 1, 2017
@bors: r+ Looks great, thanks! |
bors
commented
Feb 1, 2017
📌 Commit 0e41f13 has been approved by |
bors
commented
Feb 2, 2017
⌛ Testing commit 0e41f13 with merge f6ce61b... |
bors
commented
Feb 2, 2017
💔 Test failed - status-travis |
petrochenkov
commented
Feb 2, 2017
Hm, is this spurious or not? |
alexcrichton
commented
Feb 2, 2017
Nah I think that's a correct error, adding a new dependency here change the dependency graph. You can fix this though by appending |
petrochenkov
commented
Feb 3, 2017
@bors r=alexcrichton |
bors
commented
Feb 3, 2017
📌 Commit b4abb72 has been approved by |
bors
commented
Feb 3, 2017
rustbuild: Build jemalloc and libbacktrace only once (take 2) This is a rebase of #38583 without any additions, but with implemented @alexcrichton's suggestions. ~~This includes `exists(Makefile)` => `cfg(stage0)` suggestion... but it will break cross-compilation, no? Are `libstd/liballoc_jemalloc` cross-compiled for `target != host` built during `stage0`?~~ r? @alexcrichton
bors
commented
Feb 3, 2017
☀️ Test successful - status-appveyor, status-travis |
This is a rebase of #38583 without any additions, but with implemented @alexcrichton's suggestions.
This includesexists(Makefile)=>cfg(stage0)suggestion... but it will break cross-compilation, no? Arelibstd/liballoc_jemalloccross-compiled fortarget != hostbuilt duringstage0?r? @alexcrichton