Allow cross-compiling, build all crates

This commit is contained in:
Amos Wenger 2022-07-22 18:01:49 +02:00
parent 4dedb5830f
commit d42b28af41

View file

@ -692,7 +692,7 @@ pub struct RustAnalyzer {
impl Step for RustAnalyzer { impl Step for RustAnalyzer {
type Output = Option<PathBuf>; type Output = Option<PathBuf>;
const DEFAULT: bool = true; const DEFAULT: bool = true;
const ONLY_HOSTS: bool = true; const ONLY_HOSTS: bool = false;
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> { fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
let builder = run.builder; let builder = run.builder;
@ -719,8 +719,8 @@ impl Step for RustAnalyzer {
target: self.target, target: self.target,
tool: "rust-analyzer", tool: "rust-analyzer",
mode: Mode::ToolStd, mode: Mode::ToolStd,
path: "src/tools/rust-analyzer/crates/rust-analyzer", path: "src/tools/rust-analyzer",
extra_features: vec!["in-rust-tree".to_owned()], extra_features: vec!["rust-analyzer/in-rust-tree".to_owned()],
is_optional_tool: true, is_optional_tool: true,
source_type: SourceType::InTree, source_type: SourceType::InTree,
}) })