Skip to content

Commit e7738af

Browse files
committed
Auto merge of #134650 - onur-ozkan:clean-up-fixmes, r=Kobzol
Clean up some FIXME notes on bootstrap Fixing and removing some FIXME notes.
2 parents fd19773 + eedafbc commit e7738af

File tree

4 files changed

+9
-14
lines changed

4 files changed

+9
-14
lines changed

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

-10
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,6 @@ define_config! {
11541154
debuginfo_level_tests: Option<DebuginfoLevel> = "debuginfo-level-tests",
11551155
backtrace: Option<bool> = "backtrace",
11561156
incremental: Option<bool> = "incremental",
1157-
parallel_compiler: Option<bool> = "parallel-compiler",
11581157
default_linker: Option<String> = "default-linker",
11591158
channel: Option<String> = "channel",
11601159
description: Option<String> = "description",
@@ -1755,7 +1754,6 @@ impl Config {
17551754
debuginfo_level_tests: debuginfo_level_tests_toml,
17561755
backtrace,
17571756
incremental,
1758-
parallel_compiler,
17591757
randomize_layout,
17601758
default_linker,
17611759
channel: _, // already handled above
@@ -1865,13 +1863,6 @@ impl Config {
18651863
config.rust_randomize_layout = randomize_layout.unwrap_or_default();
18661864
config.llvm_tools_enabled = llvm_tools.unwrap_or(true);
18671865

1868-
// FIXME: Remove this option at the end of 2024.
1869-
if parallel_compiler.is_some() {
1870-
println!(
1871-
"WARNING: The `rust.parallel-compiler` option is deprecated and does nothing. The parallel compiler (with one thread) is now the default"
1872-
);
1873-
}
1874-
18751866
config.llvm_enzyme =
18761867
llvm_enzyme.unwrap_or(config.channel == "dev" || config.channel == "nightly");
18771868
config.rustc_default_linker = default_linker;
@@ -3213,7 +3204,6 @@ fn check_incompatible_options_for_ci_rustc(
32133204
debuginfo_level_tools: _,
32143205
debuginfo_level_tests: _,
32153206
backtrace: _,
3216-
parallel_compiler: _,
32173207
musl_root: _,
32183208
verbose_tests: _,
32193209
optimize_tests: _,

src/bootstrap/src/core/download.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,7 @@ impl Config {
197197
if !path_is_dylib(fname) {
198198
// Finally, set the correct .interp for binaries
199199
let dynamic_linker_path = nix_deps_dir.join("nix-support/dynamic-linker");
200-
// FIXME: can we support utf8 here? `args` doesn't accept Vec<u8>, only OsString ...
201-
let dynamic_linker = t!(String::from_utf8(t!(fs::read(dynamic_linker_path))));
200+
let dynamic_linker = t!(fs::read_to_string(dynamic_linker_path));
202201
patchelf.args(["--set-interpreter", dynamic_linker.trim_end()]);
203202
}
204203

src/bootstrap/src/lib.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -635,11 +635,12 @@ impl Build {
635635
if self.config.backtrace {
636636
features.insert("backtrace");
637637
}
638+
638639
if self.config.profiler_enabled(target) {
639640
features.insert("profiler");
640641
}
641-
// Generate memcpy, etc. FIXME: Remove this once compiler-builtins
642-
// automatically detects this target.
642+
643+
// If zkvm target, generate memcpy, etc.
643644
if target.contains("zkvm") {
644645
features.insert("compiler-builtins-mem");
645646
}

src/bootstrap/src/utils/change_tracker.rs

+5
Original file line numberDiff line numberDiff line change
@@ -320,4 +320,9 @@ pub const CONFIG_CHANGE_HISTORY: &[ChangeInfo] = &[
320320
severity: ChangeSeverity::Warning,
321321
summary: "compiletest now takes `--no-capture` instead of `--nocapture`; bootstrap now accepts `--no-capture` as an argument to test commands directly",
322322
},
323+
ChangeInfo {
324+
change_id: 134650,
325+
severity: ChangeSeverity::Warning,
326+
summary: "Removed `rust.parallel-compiler` as it was deprecated in #132282 long time ago.",
327+
},
323328
];

0 commit comments

Comments
 (0)