This commit is contained in:
Dongjia "toka" Zhang 2023-12-16 00:13:21 +09:00 committed by GitHub
parent 2f036b72e4
commit ee447468c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,7 @@ fn main() {
assert!( assert!(
!command.status().map(|s| !s.success()).unwrap_or(true), !command.status().map(|s| !s.success()).unwrap_or(true),
"Couldn't build runtime crate! Did you remember to use nightly?" "Couldn't build runtime crate! Did you remember to use nightly? (`rustup default nightly` to install) Or, did you remember to install ucd-generate? (`cargo install ucd-generate` to install)"
); );
let mut lib_path = custom_lib_dir.join(std::env::var_os("TARGET").unwrap()); let mut lib_path = custom_lib_dir.join(std::env::var_os("TARGET").unwrap());
@ -112,7 +112,7 @@ fn main() {
assert!( assert!(
!command.status().map(|s| !s.success()).unwrap_or(true), !command.status().map(|s| !s.success()).unwrap_or(true),
"Couldn't link runtime crate! Do you have the llvm-tools component installed?" "Couldn't link runtime crate! Do you have the llvm-tools component installed? (`rustup component add llvm-tools-preview` to install)"
); );
let mut child = Command::new(nm) let mut child = Command::new(nm)
@ -145,7 +145,7 @@ fn main() {
assert!( assert!(
!child.wait().map(|s| !s.success()).unwrap_or(true), !child.wait().map(|s| !s.success()).unwrap_or(true),
"Couldn't link runtime crate! Do you have the llvm-tools component installed?" "Couldn't link runtime crate! Do you have the llvm-tools component installed? (`rustup component add llvm-tools-preview` to install)"
); );
let mut command = Command::new(rust_objcopy); let mut command = Command::new(rust_objcopy);
@ -182,7 +182,7 @@ fn main() {
assert!( assert!(
!command.status().map(|s| !s.success()).unwrap_or(true), !command.status().map(|s| !s.success()).unwrap_or(true),
"Couldn't rename allocators in the runtime crate! Do you have the llvm-tools component installed?" "Couldn't rename allocators in the runtime crate! Do you have the llvm-tools component installed? (`rustup component add llvm-tools-preview` to install)"
); );
let mut command = Command::new(rust_ar); let mut command = Command::new(rust_ar);