Skip to content

Commit 16d248c

Browse files
authored
[SOL] Advance llvm commit (#92)
* Advance llvm commit
1 parent 696ef74 commit 16d248c

File tree

5 files changed

+54
-54
lines changed

5 files changed

+54
-54
lines changed

library/std/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ panic_unwind = { path = "../panic_unwind", optional = true }
1818
panic_abort = { path = "../panic_abort" }
1919
core = { path = "../core", public = true }
2020
libc = { version = "0.2.150", default-features = false, features = ['rustc-dep-of-std'], public = true }
21-
compiler_builtins = { version = "0.1.103" }
21+
compiler_builtins = { version = "=0.1.103" }
2222
profiler_builtins = { path = "../profiler_builtins", optional = true }
2323
unwind = { path = "../unwind" }
2424
hashbrown = { version = "0.14", default-features = false, features = ['rustc-dep-of-std'] }

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

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ use std::process::Command;
1919
use std::str::FromStr;
2020

2121
use crate::core::build_steps::compile::CODEGEN_BACKEND_PREFIX;
22-
use crate::core::build_steps::llvm;
2322
use crate::core::config::flags::{Color, Flags, Warnings};
2423
use crate::utils::cache::{Interned, INTERNER};
2524
use crate::utils::channel::{self, GitInfo};
@@ -2110,34 +2109,35 @@ impl Config {
21102109

21112110
fn parse_download_ci_llvm(
21122111
&self,
2113-
download_ci_llvm: Option<StringOrBool>,
2114-
asserts: bool,
2112+
_download_ci_llvm: Option<StringOrBool>,
2113+
_asserts: bool,
21152114
) -> bool {
2116-
match download_ci_llvm {
2117-
None => self.channel == "dev" && llvm::is_ci_llvm_available(&self, asserts),
2118-
Some(StringOrBool::Bool(b)) => b,
2119-
Some(StringOrBool::String(s)) if s == "if-available" => {
2120-
llvm::is_ci_llvm_available(&self, asserts)
2121-
}
2122-
Some(StringOrBool::String(s)) if s == "if-unchanged" => {
2123-
// Git is needed to track modifications here, but tarball source is not available.
2124-
// If not modified here or built through tarball source, we maintain consistency
2125-
// with '"if available"'.
2126-
if !self.rust_info.is_from_tarball()
2127-
&& self
2128-
.last_modified_commit(&["src/llvm-project"], "download-ci-llvm", true)
2129-
.is_none()
2130-
{
2131-
// there are some untracked changes in the the given paths.
2132-
false
2133-
} else {
2134-
llvm::is_ci_llvm_available(&self, asserts)
2135-
}
2136-
}
2137-
Some(StringOrBool::String(other)) => {
2138-
panic!("unrecognized option for download-ci-llvm: {:?}", other)
2139-
}
2140-
}
2115+
// match download_ci_llvm {
2116+
// None => self.channel == "dev" && llvm::is_ci_llvm_available(&self, asserts),
2117+
// Some(StringOrBool::Bool(b)) => b,
2118+
// Some(StringOrBool::String(s)) if s == "if-available" => {
2119+
// llvm::is_ci_llvm_available(&self, asserts)
2120+
// }
2121+
// Some(StringOrBool::String(s)) if s == "if-unchanged" => {
2122+
// // Git is needed to track modifications here, but tarball source is not available.
2123+
// // If not modified here or built through tarball source, we maintain consistency
2124+
// // with '"if available"'.
2125+
// if !self.rust_info.is_from_tarball()
2126+
// && self
2127+
// .last_modified_commit(&["src/llvm-project"], "download-ci-llvm", true)
2128+
// .is_none()
2129+
// {
2130+
// // there are some untracked changes in the the given paths.
2131+
// false
2132+
// } else {
2133+
// llvm::is_ci_llvm_available(&self, asserts)
2134+
// }
2135+
// }
2136+
// Some(StringOrBool::String(other)) => {
2137+
// panic!("unrecognized option for download-ci-llvm: {:?}", other)
2138+
// }
2139+
// }
2140+
false
21412141
}
21422142

21432143
/// Returns the last commit in which any of `modified_paths` were changed,

src/bootstrap/src/tests/config.rs

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,29 @@ fn parse(config: &str) -> Config {
1616
})
1717
}
1818

19-
#[test]
20-
fn download_ci_llvm() {
21-
if crate::core::build_steps::llvm::is_ci_llvm_modified(&parse("")) {
22-
eprintln!("Detected LLVM as non-available: running in CI and modified LLVM in this change");
23-
return;
24-
}
25-
26-
let parse_llvm = |s| parse(s).llvm_from_ci;
27-
let if_available = parse_llvm("llvm.download-ci-llvm = \"if-available\"");
28-
29-
assert!(parse_llvm("llvm.download-ci-llvm = true"));
30-
assert!(!parse_llvm("llvm.download-ci-llvm = false"));
31-
assert_eq!(parse_llvm(""), if_available);
32-
assert_eq!(parse_llvm("rust.channel = \"dev\""), if_available);
33-
assert!(!parse_llvm("rust.channel = \"stable\""));
34-
assert!(parse_llvm("build.build = \"x86_64-unknown-linux-gnu\""));
35-
assert!(parse_llvm(
36-
"llvm.assertions = true \r\n build.build = \"x86_64-unknown-linux-gnu\" \r\n llvm.download-ci-llvm = \"if-available\""
37-
));
38-
assert!(!parse_llvm(
39-
"llvm.assertions = true \r\n build.build = \"aarch64-apple-darwin\" \r\n llvm.download-ci-llvm = \"if-available\""
40-
));
41-
}
19+
// #[test]
20+
// fn download_ci_llvm() {
21+
// if crate::core::build_steps::llvm::is_ci_llvm_modified(&parse("")) {
22+
// eprintln!("Detected LLVM as non-available: running in CI and modified LLVM in this change");
23+
// return;
24+
// }
25+
26+
// let parse_llvm = |s| parse(s).llvm_from_ci;
27+
// let if_available = parse_llvm("llvm.download-ci-llvm = \"if-available\"");
28+
29+
// assert!(parse_llvm("llvm.download-ci-llvm = true"));
30+
// assert!(!parse_llvm("llvm.download-ci-llvm = false"));
31+
// assert_eq!(parse_llvm(""), if_available);
32+
// assert_eq!(parse_llvm("rust.channel = \"dev\""), if_available);
33+
// assert!(!parse_llvm("rust.channel = \"stable\""));
34+
// assert!(parse_llvm("build.build = \"x86_64-unknown-linux-gnu\""));
35+
// assert!(parse_llvm(
36+
// "llvm.assertions = true \r\n build.build = \"x86_64-unknown-linux-gnu\" \r\n llvm.download-ci-llvm = \"if-available\""
37+
// ));
38+
// assert!(!parse_llvm(
39+
// "llvm.assertions = true \r\n build.build = \"aarch64-apple-darwin\" \r\n llvm.download-ci-llvm = \"if-available\""
40+
// ));
41+
// }
4242

4343
// FIXME(onur-ozkan): extend scope of the test
4444
// refs:

src/ci/scripts/run-build-from-ci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ IFS=$'\n\t'
77

88
source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
99

10-
export CI="true"
10+
#export CI="true"
1111
export SRC=.
1212

1313
echo "::add-matcher::src/ci/github-actions/problem_matchers.json"

src/llvm-project

Submodule llvm-project updated 37 files

0 commit comments

Comments
 (0)