diff options
| author | Daniel Paoliello <danpao@microsoft.com> | 2024-05-07 09:59:02 -0700 |
|---|---|---|
| committer | Daniel Paoliello <danpao@microsoft.com> | 2024-05-09 12:18:09 -0700 |
| commit | 5212e07a4e8c442a8e9024c929a73f308299fea3 (patch) | |
| tree | 8888322e6863ec812fd900c5af48870f5b0074cc /src/bootstrap | |
| parent | cc8d9b692720c7d15445024485c4bbfce35dbce6 (diff) | |
| download | rust-5212e07a4e8c442a8e9024c929a73f308299fea3.tar.gz rust-5212e07a4e8c442a8e9024c929a73f308299fea3.zip | |
Upgrade the version of Clang used in the build, move MSVC builds to Server 2022
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/src/core/builder.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/builder.rs b/src/bootstrap/src/core/builder.rs index 6c4b26ec219..8d7e53d2440 100644 --- a/src/bootstrap/src/core/builder.rs +++ b/src/bootstrap/src/core/builder.rs @@ -2549,7 +2549,12 @@ impl Cargo { // FIXME: the guard against msvc shouldn't need to be here if target.is_msvc() { if let Some(ref cl) = builder.config.llvm_clang_cl { - self.command.env("CC", cl).env("CXX", cl); + // FIXME: There is a bug in Clang 18 when building for ARM64: + // https://github.com/llvm/llvm-project/pull/81849. This is + // fixed in LLVM 19, but can't be backported. + if !target.starts_with("aarch64") && !target.starts_with("arm64ec") { + self.command.env("CC", cl).env("CXX", cl); + } } } else { let ccache = builder.config.ccache.as_ref(); |
