use std::process::Command;
use build_helper::{output, t};
-use cc;
-use cmake;
use crate::builder::{Builder, RunConfig, ShouldRun, Step};
use crate::cache::Interned;
cfg.define("LLVM_ENABLE_LIBXML2", "OFF");
}
- if enabled_llvm_projects.len() > 0 {
+ if !enabled_llvm_projects.is_empty() {
enabled_llvm_projects.sort();
enabled_llvm_projects.dedup();
cfg.define("LLVM_ENABLE_PROJECTS", enabled_llvm_projects.join(";"));
cfg.define("CMAKE_SYSTEM_NAME", "NetBSD");
} else if target.contains("freebsd") {
cfg.define("CMAKE_SYSTEM_NAME", "FreeBSD");
+ } else if target.contains("windows") {
+ cfg.define("CMAKE_SYSTEM_NAME", "Windows");
}
cfg.define("LLVM_NATIVE_BUILD", builder.llvm_out(builder.config.build).join("build"));
});
}
}
+ "x86_64-fuchsia" => {
+ for s in &["asan"] {
+ result.push(SanitizerRuntime {
+ cmake_target: format!("clang_rt.{}-x86_64", s),
+ path: out_dir.join(&format!("build/lib/fuchsia/libclang_rt.{}-x86_64.a", s)),
+ name: format!("librustc_rt.{}.a", s),
+ });
+ }
+ }
+ "aarch64-fuchsia" => {
+ for s in &["asan"] {
+ result.push(SanitizerRuntime {
+ cmake_target: format!("clang_rt.{}-aarch64", s),
+ path: out_dir.join(&format!("build/lib/fuchsia/libclang_rt.{}-aarch64.a", s)),
+ name: format!("librustc_rt.{}.a", s),
+ });
+ }
+ }
_ => {}
}
result