Fix compile command for arm

This commit is contained in:
Go Murakami
2022-09-14 03:15:56 +09:00
parent 3225852547
commit 26848ef439
2 changed files with 8 additions and 3 deletions

View File

@@ -46,7 +46,9 @@ impl Compile {
.fold(CpuFeature::set(), |a, b| a | b);
// Cranelift requires SSE2, so we have this "hack" for now to facilitate
// usage
features |= CpuFeature::SSE2;
if target_triple.architecture == Architecture::X86_64 {
features |= CpuFeature::SSE2;
}
Target::new(target_triple.clone(), features)
})
.unwrap_or_default();