-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot build compiler_builtins with Visual Studio 2019 Build Tools #61911
Comments
I get this as well. I've been hacking around it with --- a/src/bootstrap/compile.rs
+++ b/src/bootstrap/compile.rs
@@ -179,8 +179,9 @@ pub fn std_cargo(builder: &Builder<'_>,
// `compiler-rt` is located.
let compiler_builtins_root = builder.src.join("src/llvm-project/compiler-rt");
let compiler_builtins_c_feature = if compiler_builtins_root.exists() {
- cargo.env("RUST_COMPILER_RT_ROOT", &compiler_builtins_root);
- " compiler-builtins-c".to_string()
+ //cargo.env("RUST_COMPILER_RT_ROOT", &compiler_builtins_root);
+ //" compiler-builtins-c".to_string()
+ String::new() // HACK! the c builtins don't build for me
} else {
String::new()
}; I think this was introduced in #60981, so cc @alexcrichton |
I don't think that anything is being missed here. This is probably a bug with either:
The former may already even be fixed upstream, the latter is probably some missing |
This patch was applied to our |
Update LLVM to fix VS 2019 compilation Fixes #61911. r? @alexcrichton
Trying to build rustc with Visual Studio 2019 Build Tools results in the following error:
I've tried version versions 16.1.1 and 16.1.3 on different machines with the same result.
Visual Studio 2017 Build Tools work fine.
Is there some magic incantation I'm missing?
The text was updated successfully, but these errors were encountered: