Nick Cameron
63d854acf2
Distribute Rustfmt
2017-11-13 10:51:29 +13:00
Mark Simulacrum
0fcd3e7b07
Make sure to clear out the stageN-{rustc,std,tools} directories.
...
We copy built tool binaries into a dedicated directory to avoid deleting
them, stageN-tools-bin. These aren't ever cleared out by code, since
there should be no reason to do so, and we'll simply overwrite them as
necessary.
When clearing out the stageN-{std,rustc,tools} directories, make sure to
delete both Cargo directories -- per-target and build scripts. This
ensures that changing libstd doesn't cause problems due to build scripts
not being rebuilt, even though they should be.
2017-10-18 16:30:33 -06:00
Vadim Petrochenkov
0577b60832
Re-enable linker override for cross-compilation
2017-10-16 03:22:17 +03:00
Vadim Petrochenkov
89d9ce4ec3
Don't use target's linker when linking build scripts
2017-10-15 23:23:28 +03:00
Vadim Petrochenkov
9e0fc5ccd0
rustbuild: Support specifying archiver and linker explicitly
2017-10-15 22:10:07 +03:00
Mark Simulacrum
6bc8ca06c1
Rollup merge of #44694 - tommyip:make_clean, r=Mark-Simulacrum
...
Add --all flag to ./x.py clean
This make `clean` removes the LLVM and download cache directory as well.
Fixes #44214 .
r? @Mark-Simulacrum
2017-09-29 17:58:54 -06:00
Alex Crichton
7694ca419b
Update to the cc
crate
...
This is the name the `gcc` crate has moved to
2017-09-28 07:45:50 -07:00
Tommy Ip
2c78bb49fd
Add --all flag to ./x.py clean
...
This flag removes all build artifacts, including the LLVM build
directory.
2017-09-20 18:14:19 +01:00
Ximin Luo
8f25497d78
rustbuild: with --no-fail-fast, report the specific commands that failed
2017-09-18 21:21:24 +02:00
Oliver Schneider
ab018c76e1
Add a file to trivially disable tool building or testing
2017-09-17 21:41:45 +02:00
Simon Sapin
de038b746e
Add full git commit hash to release channel manifests
...
The full hash is necessary to build the download URL for "alternate"
compiler builds.
This is a first step for
https://github.com/rust-lang-nursery/rustup.rs/issues/1099
2017-08-31 16:37:14 +02:00
bors
c2f9cc4a3b
Auto merge of #44143 - alexcrichton:faster-bootstrap, r=Mark-Simulacrum
...
rustbuild: Avoid some extraneous rustc compiles on cross builds
This tweaks a few locations here and there to avoid compiling rustc too many times on our cross-builders on CI.
Closes https://github.com/rust-lang/rust/issues/44132
2017-08-30 02:56:48 +00:00
Alex Crichton
7007a44cf2
rustbuild: Fix uplifting stage1 on cross builds
...
When we pass `--host` the `self.hosts` array doesn't contain `self.build`, so
check `self.build` to see if we can uplift.
2017-08-28 18:32:29 -07:00
Tatsuyuki Ishi
45d31ac2f2
bootstrap: remove unneeded extern crate
...
The crate itself is internally referenced by serde_derive.
2017-08-28 12:52:02 +09:00
Samuel Holland
52832439ad
Inline crt-static choice for pc-windows-msvc
...
This avoids the possibility of a duplicate or conflicting crt-static
command line option sent to rustc.
2017-08-22 16:24:29 -05:00
Samuel Holland
4b09dc6e39
Introduce crt_static target option in config.toml
...
This controls the value of the crt-static feature used when building the
standard library for a target, as well as the compiler itself when that
target is the host.
2017-08-22 16:24:29 -05:00
Corey Farwell
a4387d54dc
Rollup merge of #43891 - Fourchaux:master, r=steveklabnik
...
Fix typos & us spellings
Fixing some typos and non en-US spellings.
(Update of PR https://github.com/rust-lang/rust/pull/42812 )
2017-08-17 10:44:07 -04:00
Zack M. Davis
1b6c9605e4
use field init shorthand EVERYWHERE
...
Like #43008 (f668999), but _much more aggressive_.
2017-08-15 15:29:17 -07:00
Fourchaux
c7104be1a3
Fix typos & us spellings
2017-08-15 21:56:30 +02:00
Mark Simulacrum
40dea65ec2
Add ability to ignore git when building rust.
...
Some users of the build system change the git sha on every build due to
utilizing git to push changes to a remote server. This allows them to
simply configure that away instead of depending on custom patches to
rustbuild.
2017-08-13 05:15:43 +05:00
Mark Simulacrum
44ffb61623
Unify flags into config.
...
This introduces a slight change in behavior, where we unilaterally
respect the --host and --target parameters passed for all sanity
checking and runtime configuration.
2017-08-13 05:15:43 +05:00
bjorn3
e152a1620b
Build support for no llvm
2017-08-11 10:38:29 +02:00
Mark Simulacrum
6a67a050c6
Change make_run signature to taking a RunConfig struct for refactorability.
2017-07-20 17:51:07 -06:00
Mark Simulacrum
528646e127
Utilize interning to allow Copy/Clone steps
2017-07-20 11:24:32 -06:00
Mark Simulacrum
e7b1a60ad7
Remove core_intrinsics feature gate
2017-07-20 11:24:00 -06:00
Mark Simulacrum
a5ab2ceef8
Fix a few errors introduced during rebase.
2017-07-20 11:23:59 -06:00
Mark Simulacrum
a1fa2681cf
Update to toml 0.4
2017-07-20 11:23:59 -06:00
Mark Simulacrum
b881aaed90
Document the process more thoroughly
2017-07-20 11:23:59 -06:00
Mark Simulacrum
c114fe576f
Finish fixing warnings and errors. Bootstrap builds.
2017-07-20 11:23:58 -06:00
Mark Simulacrum
7db49fb467
Move cargo() to Builder
2017-07-20 11:23:58 -06:00
Mark Simulacrum
276090e870
Fix tool_cmd
2017-07-20 11:23:58 -06:00
Mark Simulacrum
1a844ebb8f
Move tool_cmd to tool.rs
2017-07-20 11:23:58 -06:00
Mark Simulacrum
60388303c7
Fixes warnings and errors introduced while moving code around
2017-07-20 11:23:58 -06:00
Mark Simulacrum
cd3dd803a7
Add Builder and Step definitions.
2017-07-20 11:23:58 -06:00
Mark Simulacrum
0a1b5e8bc0
Move rule configs out of step
2017-07-20 11:23:57 -06:00
Mátyás Mustoha
bbdbb65467
Allow remote testing remotely when TEST_DEVICE_ADDR
is set
2017-07-17 11:33:48 +02:00
Matthew Dawson
ce3abc5801
Fix stage 2 builds with a custom libdir.
...
When copying libstd for the stage 2 compiler, the builder ignores the
configured libdir/libdir_relative configuration parameters. This causes
the compiler to fail to find libstd, which cause any tools built with the
stage 2 compiler to fail.
To fix this, make the copy steps of rustbuild aware of the libdir_relative
parameter when the stage >= 2. Also update the dist target to be aware of
the new location of libstd.
2017-07-07 23:07:01 -04:00
Alex Crichton
78fdbfc400
rustbuild: Only -Zsave-analysis for libstd
...
Don't pass the flag when we're compiling the compiler or other related tools
2017-07-05 13:51:34 -07:00
Mark Simulacrum
1654a2f5ac
Use build.build instead of build.config.build
2017-07-04 07:39:47 -06:00
Mark Simulacrum
5809a7d0b7
Move targets, hosts, and build triple into Build.
2017-07-04 07:31:56 -06:00
Mark Simulacrum
39cf1da81c
Store verbosity on Build
...
Prevents accidental mistakes in not using the right verbosity by going
to only config or flags.
2017-07-04 07:31:56 -06:00
Mark Simulacrum
4dc8fe9083
Store positive instead of negative fail_fast.
...
This makes later negation much easier to interpret.
2017-07-04 07:31:56 -06:00
Mark Simulacrum
712bd0d841
Remove src_is_git, instead call method on rust_info directly.
2017-07-04 07:31:56 -06:00
Mark Simulacrum
2cc5b084a0
Clarify meaning of Build.cargo, Build.rustc.
...
Rename Build.{cargo, rustc} to {initial_cargo, initial_rustc}.
2017-07-04 07:31:56 -06:00
Mark Simulacrum
743af95d4b
Update a few comments.
2017-07-04 07:31:56 -06:00
Mark Simulacrum
6766abbfa9
Clippy lints
2017-07-04 07:31:55 -06:00
Marc-Antoine Perennou
d23a62ba71
rustbuild: set __CARGO_DEFAULT_LIB_METADATA to channel
...
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2017-06-30 09:16:00 +02:00
Ian Douglas Scott
f98ffb5bc3
Make Build.cxx() return a Result instead of panicking
2017-06-22 11:51:32 -07:00
Ian Douglas Scott
526afcb0a3
Set CXX_<target> in bootstrap
2017-06-22 10:42:10 -07:00
Alex Crichton
be7ebdd512
Bump version and stage0 compiler
2017-06-19 22:25:05 -07:00