提交 73a40ac1 编写于 作者: J Joshua Nelson

Inline maybe_update_submodule

It was a trivial function only used once.
上级 2fbe2ca9
......@@ -472,21 +472,17 @@ pub fn build_triple(&self) -> &[Interned<String>] {
slice::from_ref(&self.build.triple)
}
/// If the LLVM submodule has been initialized already, sync it unconditionally. This avoids
/// contributors checking in a submodule change by accident.
pub fn maybe_update_llvm_submodule(&self) {
if self.in_tree_llvm_info.is_git() {
native::update_llvm_submodule(self);
}
}
/// Executes the entire build, as configured by the flags and configuration.
pub fn build(&mut self) {
unsafe {
job::setup(self);
}
self.maybe_update_llvm_submodule();
// If the LLVM submodule has been initialized already, sync it unconditionally. This avoids
// contributors checking in a submodule change by accident.
if self.in_tree_llvm_info.is_git() {
native::update_llvm_submodule(self);
}
if let Subcommand::Format { check, paths } = &self.config.cmd {
return format::format(self, *check, &paths);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册