Skip to content

Commit 28371b8

Browse files
committed
populate the target_config now before its usage and update the test accordingly
1 parent 9748d87 commit 28371b8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/bootstrap/src/core/builder/tests.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1647,6 +1647,7 @@ mod snapshot {
16471647
.render_steps(), @r"
16481648
[build] llvm <host>
16491649
[build] rustc 0 <host> -> rustc 1 <host>
1650+
[build] rustc 0 <host> -> LldWrapper 1 <host>
16501651
[build] rustdoc 0 <host>
16511652
[doc] std 1 <host> crates=[core]
16521653
");
@@ -1662,6 +1663,7 @@ mod snapshot {
16621663
.render_steps(), @r"
16631664
[build] llvm <host>
16641665
[build] rustc 0 <host> -> rustc 1 <host>
1666+
[build] rustc 0 <host> -> LldWrapper 1 <host>
16651667
[build] rustdoc 0 <host>
16661668
[doc] std 1 <host> crates=[alloc,core]
16671669
");

src/bootstrap/src/core/config/config.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,7 @@ impl Config {
942942
config.rust_profile_use = flags_rust_profile_use;
943943
config.rust_profile_generate = flags_rust_profile_generate;
944944

945+
config.apply_target_config(toml.target);
945946
config.apply_rust_config(toml.rust, flags_warnings);
946947

947948
config.reproducible_artifacts = flags_reproducible_artifact;
@@ -967,8 +968,6 @@ impl Config {
967968

968969
config.apply_gcc_config(toml.gcc);
969970

970-
config.apply_target_config(toml.target);
971-
972971
match ccache {
973972
Some(StringOrBool::String(ref s)) => config.ccache = Some(s.to_string()),
974973
Some(StringOrBool::Bool(true)) => {

0 commit comments

Comments
 (0)