提交 ae753118 编写于 作者: I Igor Matuszewski

Add Callbacks::after_expansion

上级 85a360e0
......@@ -109,6 +109,10 @@ fn config(&mut self, _config: &mut interface::Config) {}
fn after_parsing(&mut self, _compiler: &interface::Compiler) -> bool {
true
}
/// Called after expansion and returns true to continue execution
fn after_expansion(&mut self, _compiler: &interface::Compiler) -> bool {
true
}
/// Called after analysis and returns true to continue execution
fn after_analysis(&mut self, _compiler: &interface::Compiler) -> bool {
true
......@@ -312,6 +316,11 @@ pub fn run_compiler(
return sess.compile_status();
}
compiler.expansion()?;
if !callbacks.after_expansion(compiler) {
return sess.compile_status();
}
compiler.prepare_outputs()?;
if sess.opts.output_types.contains_key(&OutputType::DepInfo)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册