about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-08-09 10:47:49 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-08-09 10:47:49 +0000
commit8f9ac9c22d6594cf059d8e6c71d414cc5ccd7975 (patch)
tree3eb24f32dd2839896d60625a9d908632cef578f9
parent716dcb77931935264847f55cd20f581a5a25afa8 (diff)
downloadrust-8f9ac9c22d6594cf059d8e6c71d414cc5ccd7975.tar.gz
rust-8f9ac9c22d6594cf059d8e6c71d414cc5ccd7975.zip
Fix MinGW
-rw-r--r--build_system/build_sysroot.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/build_system/build_sysroot.rs b/build_system/build_sysroot.rs
index 6623a713719..31a4b209826 100644
--- a/build_system/build_sysroot.rs
+++ b/build_system/build_sysroot.rs
@@ -306,6 +306,7 @@ fn build_rtstartup(dirs: &Dirs, compiler: &Compiler) -> Option<SysrootTarget> {
         let obj = RTSTARTUP_SYSROOT.to_path(dirs).join(format!("{file}.o"));
         let mut build_rtstartup_cmd = Command::new(&compiler.rustc);
         build_rtstartup_cmd
+            .arg("-Ainternal_features") // Missing #[allow(internal_features)]
             .arg("--target")
             .arg(&compiler.triple)
             .arg("--emit=obj")