Lines Matching +full:llvm +full:- +full:config
6 //! compilers for cross-compiling are found.
19 use crate::config::Target;
29 pub fn new() -> Self { in new()
33 pub fn maybe_have<S: Into<OsString>>(&mut self, cmd: S) -> Option<PathBuf> { in maybe_have()
57 pub fn must_have<S: AsRef<OsStr>>(&mut self, cmd: S) -> PathBuf { in must_have()
69 // https://github.com/rust-lang/rust/issues/34959 for more details. in check()
81 // We need cmake, but only if we're actually building LLVM or sanitizers. in check()
82 let building_llvm = build.config.rust_codegen_backends.contains(&INTERNER.intern_str("llvm")) in check()
88 .config in check()
91 .map(|config| config.llvm_config.is_none()) in check()
95 let need_cmake = building_llvm || build.config.any_sanitizers_enabled(); in check()
102 You should install cmake, or set `download-ci-llvm = true` in the in check()
103 `[llvm]` section of `config.toml` to download LLVM rather in check()
111 build.config.python = build in check()
112 .config in check()
121 build.config.nodejs = build in check()
122 .config in check()
129 build.config.npm = build in check()
130 .config in check()
136 build.config.gdb = build in check()
137 .config in check()
143 build.config.reuse = build in check()
144 .config in check()
151 // also build some C++ shims for LLVM so we need a C++ compiler. in check()
168 // <https://github.com/rust-lang/rust/pull/103569#discussion_r1008741742>. in check()
173 if !build.config.dry_run() { in check()
182 if !build.config.dry_run() { in check()
187 if build.config.rust_codegen_backends.contains(&INTERNER.intern_str("llvm")) { in check()
188 // Externally configured LLVM requires FileCheck to exist in check()
190 if !filecheck.starts_with(&build.out) && !filecheck.exists() && build.config.codegen_tests { in check()
197 .config in check()
202 if target.contains("-none-") || target.contains("nvptx") { in check()
204 panic!("All the *-none-* and nvptx* targets are no-std targets") in check()
208 // Make sure musl-root is valid in check()
210 // If this is a native target (host is also musl) and no musl-root is given, in check()
212 if build.musl_root(*target).is_none() && build.config.build == *target { in check()
213 let target = build.config.target_config.entry(*target).or_default(); in check()
223 "when targeting MUSL either the rust.musl-root \ in check()
224 option or the target.$TARGET.musl-root option must \ in check()
225 be specified in config.toml" in check()
233 // <https://github.com/rust-lang/rust/pull/103569#discussion_r1008741742>. in check()
242 let out = output(Command::new("cmake").arg("--help")); in check()
252 If you are building under msys2 try installing the mingw-w64-x86_64-cmake in check()
255 $ pacman -R cmake && pacman -S mingw-w64-x86_64-cmake in check()
262 if let Some(ref s) = build.config.ccache { in check()