Fix x.py install

Make sure we look for save analysis in the right place. Fixes #61703.
This commit is contained in:
Tyler Mandry 2019-06-11 14:21:03 -07:00
parent 02564de47b
commit 4f3cd3ca07

View file

@ -251,7 +251,10 @@ install!((self, builder, _config),
};
Analysis, "analysis", Self::should_build(_config), only_hosts: false, {
builder.ensure(dist::Analysis {
compiler: self.compiler,
// Find the actual compiler (handling the full bootstrap option) which
// produced the save-analysis data because that data isn't copied
// through the sysroot uplifting.
compiler: builder.compiler_for(builder.top_stage, builder.config.build, self.target),
target: self.target
});
install_analysis(builder, self.compiler.stage, self.target);