Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
c35ce3f
Don't generate bootstrap usage unless it's needed
jyn514 Sep 16, 2020
1d2290f
Update LLVM
Sep 16, 2020
ed6c7ef
Use enum for status of non-const ops
ecstatic-morse Sep 2, 2020
c3607bd
Use helper function for searching `allow_internal_unstable`
ecstatic-morse Sep 2, 2020
e4edc16
Give name to extra `Span` in `LiveDrop` error
ecstatic-morse Sep 2, 2020
81b3b66
Error if an unstable const eval feature is used in a stable const fn
ecstatic-morse Sep 3, 2020
1e1257b
Bless `miri-unleashed` tests
ecstatic-morse Sep 16, 2020
abc7167
Test that `const_precise_live_drops` can't be depended upon stably
ecstatic-morse Sep 16, 2020
7e24136
Pass --target to lint docs
Mark-Simulacrum Sep 16, 2020
bd4e0af
Build rustdoc for cross-compiled targets
Mark-Simulacrum Sep 16, 2020
012974d
use strip_prefix over starts_with and manual slicing based on pattern…
matthiaskrgr Sep 17, 2020
c946c40
Let backends define custom targets
khyperia Sep 17, 2020
48655c2
PR feedback
khyperia Sep 17, 2020
7b5d983
Remove redundant to_string
zzau13 Sep 17, 2020
76ec3f8
Move to intra doc links in core/src/future
poliorcetics Sep 17, 2020
643eb07
update Miri
RalfJung Sep 17, 2020
363aff0
Add test for x.py build cross-compilation
Mark-Simulacrum Sep 17, 2020
8e9ad31
Use intra-doc links
denisvasilik Sep 17, 2020
3323a26
Fixed some intra-docs links in library/core
Amjad50 Sep 17, 2020
878dfa6
Fixed intra-docs links in library/std/src/collections/hash/map.rs
Amjad50 Sep 17, 2020
f05b47c
Don't download/sync llvm-project submodule if download-ci-llvm is set
est31 Sep 18, 2020
28cfa97
Simplify panic_if_treat_err_as_bug avoiding allocations
zzau13 Sep 18, 2020
baafc71
Remove unused libc feature gate
est31 Sep 18, 2020
4c92b3d
Apply suggestions from code review
poliorcetics Sep 18, 2020
bdb039d
Use intra-doc links
denisvasilik Sep 18, 2020
f272896
Remove some unused features from alloc core and std
est31 Sep 18, 2020
0bc405e
Remove DeclareMethods
khyperia Sep 18, 2020
0810c3e
support panic=abort in Miri
RalfJung Sep 18, 2020
b9af3e3
bootstrap: move the version number to a plaintext file
pietroalbini Sep 18, 2020
2230d8d
Update library/alloc/src/collections/binary_heap.rs
denisvasilik Sep 18, 2020
ec7225f
Update library/alloc/src/collections/binary_heap.rs
denisvasilik Sep 18, 2020
62e0ee1
Update library/alloc/src/collections/binary_heap.rs
denisvasilik Sep 18, 2020
719c40c
Update library/alloc/src/collections/binary_heap.rs
denisvasilik Sep 18, 2020
25883aa
Add allocation information to undefined behaviour errors.
hameerabbasi Sep 18, 2020
0d0a3e1
Record `tcx.def_span` instead of `item.span` in crate metadata
Aaron1011 Sep 19, 2020
a78660f
Rollup merge of #76799 - Mark-Simulacrum:fix-cross-compile-dist, r=al…
Dylan-DPC Sep 19, 2020
7230377
Rollup merge of #76800 - jyn514:usage, r=Mark-Simulacrum
Dylan-DPC Sep 19, 2020
0505c85
Rollup merge of #76806 - jethrogb:jb/update-llvm, r=cuviper
Dylan-DPC Sep 19, 2020
4650fc8
Rollup merge of #76807 - ecstatic-morse:const-checking-staged-api, r=…
Dylan-DPC Sep 19, 2020
128a89b
Rollup merge of #76828 - matthiaskrgr:clippy_manual_strip, r=lcnr
Dylan-DPC Sep 19, 2020
1a84bd1
Rollup merge of #76832 - khyperia:backend_target_override, r=eddyb
Dylan-DPC Sep 19, 2020
ad09a16
Rollup merge of #76840 - poliorcetics:intra-doc-core-sync-and-future,…
Dylan-DPC Sep 19, 2020
833d585
Rollup merge of #76845 - Amjad50:fix-intra-docs-links, r=jyn514
Dylan-DPC Sep 19, 2020
c46efe5
Rollup merge of #76846 - botika:master, r=davidtwco
Dylan-DPC Sep 19, 2020
a18c53d
Rollup merge of #76848 - RalfJung:miri, r=RalfJung
Dylan-DPC Sep 19, 2020
672f648
Rollup merge of #76853 - denisvasilik:intra-doc-links-core-wake, r=jy…
Dylan-DPC Sep 19, 2020
7206bc3
Rollup merge of #76864 - est31:downloaded_llvm_no_clone_sources, r=Ma…
Dylan-DPC Sep 19, 2020
7e93aca
Rollup merge of #76866 - est31:master, r=lcnr
Dylan-DPC Sep 19, 2020
3c54c2d
Rollup merge of #76871 - RalfJung:miri-panic-abort, r=dtolnay
Dylan-DPC Sep 19, 2020
2f684d0
Rollup merge of #76872 - khyperia:remove_declare_methods, r=eddyb
Dylan-DPC Sep 19, 2020
a3d530b
Rollup merge of #76875 - denisvasilik:intra-doc-links-alloc-binary-he…
Dylan-DPC Sep 19, 2020
3f3ac16
Rollup merge of #76878 - pietroalbini:version, r=Mark-Simulacrum
Dylan-DPC Sep 19, 2020
34f9501
Rollup merge of #76881 - hameerabbasi:issue-53325, r=oli-obk
Dylan-DPC Sep 19, 2020
bb49eea
Rollup merge of #76898 - Aaron1011:fix/item-def-span, r=oli-obk
Dylan-DPC Sep 19, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add test for x.py build cross-compilation
  • Loading branch information
Mark-Simulacrum committed Sep 17, 2020
commit 363aff0a9d0b85285b7501cb04dd8263d29d273a
48 changes: 48 additions & 0 deletions src/bootstrap/builder/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,54 @@ mod defaults {
assert!(builder.cache.all::<compile::Rustc>().is_empty());
}

#[test]
fn build_cross_compile() {
let config = Config { stage: 1, ..configure("build", &["B"], &["B"]) };
let build = Build::new(config);
let mut builder = Builder::new(&build);
builder.run_step_descriptions(&Builder::get_step_descriptions(Kind::Build), &[]);

let a = TargetSelection::from_user("A");
let b = TargetSelection::from_user("B");

// Ideally, this build wouldn't actually have `target: a`
// rustdoc/rustcc/std here (the user only requested a host=B build, so
// there's not really a need for us to build for target A in this case
// (since we're producing stage 1 libraries/binaries). But currently
// rustbuild is just a bit buggy here; this should be fixed though.
assert_eq!(
first(builder.cache.all::<compile::Std>()),
&[
compile::Std { compiler: Compiler { host: a, stage: 0 }, target: a },
compile::Std { compiler: Compiler { host: a, stage: 1 }, target: a },
compile::Std { compiler: Compiler { host: a, stage: 0 }, target: b },
compile::Std { compiler: Compiler { host: a, stage: 1 }, target: b },
]
);
assert_eq!(
first(builder.cache.all::<compile::Assemble>()),
&[
compile::Assemble { target_compiler: Compiler { host: a, stage: 0 } },
compile::Assemble { target_compiler: Compiler { host: a, stage: 1 } },
compile::Assemble { target_compiler: Compiler { host: b, stage: 1 } },
]
);
assert_eq!(
first(builder.cache.all::<tool::Rustdoc>()),
&[
tool::Rustdoc { compiler: Compiler { host: a, stage: 1 } },
tool::Rustdoc { compiler: Compiler { host: b, stage: 1 } },
],
);
assert_eq!(
first(builder.cache.all::<compile::Rustc>()),
&[
compile::Rustc { compiler: Compiler { host: a, stage: 0 }, target: a },
compile::Rustc { compiler: Compiler { host: a, stage: 0 }, target: b },
]
);
}

#[test]
fn doc_default() {
let mut config = configure("doc", &[], &[]);
Expand Down