mk: Switch rustbuild to the default build system #37817
mk: Switch rustbuild to the default build system #37817bors merged 1 commit intorust-lang:masterfrom
Conversation
|
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
|
r? @brson Note that this shouldn't be r+'d yet as I'd like to wait for appveyor/Travis to go green (trying to run all the builders there). Also if there's any more requests for documentation anywhere, I'd be more than happy to oblige! |
CONTRIBUTING.md
Outdated
There was a problem hiding this comment.
I run x.py --help and it starts downloading something big from the internet instead of showing help.
I don't think this is an appropriate behavior.
petrochenkov
left a comment
There was a problem hiding this comment.
Fix #37305 before merging
CONTRIBUTING.md
Outdated
There was a problem hiding this comment.
Is bootstrap python3-compatible, btw? In case python defaults to 3. This is probably worth mentioning.
(Or build fails in some other way if python == python3, but python2 is still available? I don't remember exactly.)
There was a problem hiding this comment.
Yes all the Python code in Rust repo is Py3k-compatible AFAIK, which is not so much btw. The whole Python 2-only thing in README is outdated actually.
There was a problem hiding this comment.
Last I heard, Python 2 was only necessary for LLVM.
There was a problem hiding this comment.
AFAIK bootstrap.py is fully compatible, and then later version detection happens in rustbuild itself.
configure
Outdated
There was a problem hiding this comment.
Sorry for a silly question, but is the date in standard format (2 January) or in Freedom Units (1 February)?.
There was a problem hiding this comment.
I just commented on the internals thread -- I think it should actually be February 2nd.
There was a problem hiding this comment.
In any case, the year is wrong. (In the PR description, too)
src/bootstrap/lib.rs
Outdated
There was a problem hiding this comment.
Could you document explicit parallelizing with -jN somewhere as well?
bd5bab4 to
6b11d6a
Compare
configure
Outdated
CONTRIBUTING.md
Outdated
There was a problem hiding this comment.
Technically you can also use a different short version on Windows if you have .py files associated with Python. x.py build in cmd and .\x.py build in powershell.
There was a problem hiding this comment.
And MSYS2 is just "Unix-based" enough to see the shebang :D
README.md
Outdated
There was a problem hiding this comment.
This prompt is supposed to be cmd.exe according to the above paragraph, so using $ is incorrect here.
CONTRIBUTING.md
Outdated
src/bootstrap/lib.rs
Outdated
There was a problem hiding this comment.
tho it is also pretty compile-cated
src/bootstrap/step.rs
Outdated
There was a problem hiding this comment.
*compiled (I guess) line 77
src/bootstrap/lib.rs
Outdated
There was a problem hiding this comment.
*perform on. Rustbuild is made up of
Just a suggestion 'of of' reads a bit difficult
src/bootstrap/lib.rs
Outdated
There was a problem hiding this comment.
*For each step Rustbuild relies on the step to be internally incremental and also to be internally parallelizing.
8204cb4 to
b92e513
Compare
|
@petrochenkov can you elaborate on why you think #37305 is a blocker for landing this PR? I unfortunately don't see any path forward to solving it, so any opinions on how to solve it would also be greatly appreciated! |
b92e513 to
b781dec
Compare
d5bfc7c to
3a66312
Compare
76f9e9e to
4755f95
Compare
|
@bors: r=brson |
|
📌 Commit 4755f95 has been approved by |
|
⌛ Testing commit 4755f95 with merge 0ae2037... |
|
💔 Test failed - auto-linux-64-x-android-t |
|
☔ The latest upstream changes (presumably #38100) made this pull request unmergeable. Please resolve the merge conflicts. |
4755f95 to
fd183a2
Compare
This commit switches the default build system for Rust from the makefiles to rustbuild. The rustbuild build system has been in development for almost a year now and has become quite mature over time. This commit is an implementation of the proposal on [internals] which slates deletion of the makefiles on 2016-01-02. [internals]: https://internals.rust-lang.org/t/proposal-for-promoting-rustbuild-to-official-status/4368 This commit also updates various documentation in `README.md`, `CONTRIBUTING.md`, `src/bootstrap/README.md`, and throughout the source code of rustbuild itself. Closes rust-lang#37858
fd183a2 to
0e272de
Compare
|
@bors: r=brson |
|
📌 Commit 0e272de has been approved by |
mk: Switch rustbuild to the default build system This commit switches the default build system for Rust from the makefiles to rustbuild. The rustbuild build system has been in development for almost a year now and has become quite mature over time. This commit is an implementation of the proposal on [internals] which slates deletion of the makefiles on 2017-02-02. [internals]: https://internals.rust-lang.org/t/proposal-for-promoting-rustbuild-to-official-status/4368 This commit also updates various documentation in `README.md`, `CONTRIBUTING.md`, `src/bootstrap/README.md`, and throughout the source code of rustbuild itself.
|
It looks like Travis started failing everything after this pull request merged. |
…rson Delete the makefile build system This PR deletes the makefile build system in favor of the rustbuild build system. The beta has now been branched so 1.16 will continue to be buildable from the makefiles, but going forward 1.17 will only be buildable with rustbuild. Rustbuild has been the default build system [since 1.15.0](rust-lang#37817) and the makefiles were [proposed for deletion](https://internals.rust-lang.org/t/proposal-for-promoting-rustbuild-to-official-status/4368) at this time back in November of last year. And now with the deletion of these makefiles we can start getting those sweet sweet improvements of using crates.io crates in the compiler!
Delete the makefile build system This PR deletes the makefile build system in favor of the rustbuild build system. The beta has now been branched so 1.16 will continue to be buildable from the makefiles, but going forward 1.17 will only be buildable with rustbuild. Rustbuild has been the default build system [since 1.15.0](#37817) and the makefiles were [proposed for deletion](https://internals.rust-lang.org/t/proposal-for-promoting-rustbuild-to-official-status/4368) at this time back in November of last year. And now with the deletion of these makefiles we can start getting those sweet sweet improvements of using crates.io crates in the compiler!
…rson Delete the makefile build system This PR deletes the makefile build system in favor of the rustbuild build system. The beta has now been branched so 1.16 will continue to be buildable from the makefiles, but going forward 1.17 will only be buildable with rustbuild. Rustbuild has been the default build system [since 1.15.0](rust-lang#37817) and the makefiles were [proposed for deletion](https://internals.rust-lang.org/t/proposal-for-promoting-rustbuild-to-official-status/4368) at this time back in November of last year. And now with the deletion of these makefiles we can start getting those sweet sweet improvements of using crates.io crates in the compiler!
…rson Delete the makefile build system This PR deletes the makefile build system in favor of the rustbuild build system. The beta has now been branched so 1.16 will continue to be buildable from the makefiles, but going forward 1.17 will only be buildable with rustbuild. Rustbuild has been the default build system [since 1.15.0](rust-lang#37817) and the makefiles were [proposed for deletion](https://internals.rust-lang.org/t/proposal-for-promoting-rustbuild-to-official-status/4368) at this time back in November of last year. And now with the deletion of these makefiles we can start getting those sweet sweet improvements of using crates.io crates in the compiler!
…rson Delete the makefile build system This PR deletes the makefile build system in favor of the rustbuild build system. The beta has now been branched so 1.16 will continue to be buildable from the makefiles, but going forward 1.17 will only be buildable with rustbuild. Rustbuild has been the default build system [since 1.15.0](rust-lang#37817) and the makefiles were [proposed for deletion](https://internals.rust-lang.org/t/proposal-for-promoting-rustbuild-to-official-status/4368) at this time back in November of last year. And now with the deletion of these makefiles we can start getting those sweet sweet improvements of using crates.io crates in the compiler!
Delete the makefile build system This PR deletes the makefile build system in favor of the rustbuild build system. The beta has now been branched so 1.16 will continue to be buildable from the makefiles, but going forward 1.17 will only be buildable with rustbuild. Rustbuild has been the default build system [since 1.15.0](rust-lang/rust#37817) and the makefiles were [proposed for deletion](https://internals.rust-lang.org/t/proposal-for-promoting-rustbuild-to-official-status/4368) at this time back in November of last year. And now with the deletion of these makefiles we can start getting those sweet sweet improvements of using crates.io crates in the compiler!
Delete the makefile build system This PR deletes the makefile build system in favor of the rustbuild build system. The beta has now been branched so 1.16 will continue to be buildable from the makefiles, but going forward 1.17 will only be buildable with rustbuild. Rustbuild has been the default build system [since 1.15.0](rust-lang/rust#37817) and the makefiles were [proposed for deletion](https://internals.rust-lang.org/t/proposal-for-promoting-rustbuild-to-official-status/4368) at this time back in November of last year. And now with the deletion of these makefiles we can start getting those sweet sweet improvements of using crates.io crates in the compiler!
This commit switches the default build system for Rust from the makefiles to
rustbuild. The rustbuild build system has been in development for almost a year
now and has become quite mature over time. This commit is an implementation of
the proposal on internals which slates deletion of the makefiles on
2017-02-02.
This commit also updates various documentation in
README.md,CONTRIBUTING.md,src/bootstrap/README.md, and throughout the source code ofrustbuild itself.