Build support for no llvm

This commit is contained in:
bjorn3
2017-06-18 16:00:10 +02:00
parent 73c3f55a3e
commit e152a1620b
4 changed files with 17 additions and 0 deletions

View File

@@ -56,6 +56,12 @@ impl Step for Llvm {
fn run(self, builder: &Builder) {
let build = builder.build;
let target = self.target;
// If we're not compiling for LLVM bail out here.
if !build.config.llvm_enabled {
return;
}
// If we're using a custom LLVM bail out here, but we can only use a
// custom LLVM for the build triple.
if let Some(config) = build.config.target_config.get(&target) {