mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-23 17:32:14 +00:00
Don't try to initialize a target whose inkwell feature flag was not enabled.
This commit is contained in:
parent
4f39102aab
commit
f3ab59eace
@ -8464,6 +8464,7 @@ impl<'ctx> ModuleCodeGenerator<LLVMFunctionCodeGenerator<'ctx>, LLVMBackend, Cod
|
|||||||
let triple = triple.unwrap_or(TargetMachine::get_default_triple().to_string());
|
let triple = triple.unwrap_or(TargetMachine::get_default_triple().to_string());
|
||||||
|
|
||||||
match triple {
|
match triple {
|
||||||
|
#[cfg(target_arch = "x86_64")]
|
||||||
_ if triple.starts_with("x86") => Target::initialize_x86(&InitializationConfig {
|
_ if triple.starts_with("x86") => Target::initialize_x86(&InitializationConfig {
|
||||||
asm_parser: true,
|
asm_parser: true,
|
||||||
asm_printer: true,
|
asm_printer: true,
|
||||||
@ -8472,6 +8473,7 @@ impl<'ctx> ModuleCodeGenerator<LLVMFunctionCodeGenerator<'ctx>, LLVMBackend, Cod
|
|||||||
info: true,
|
info: true,
|
||||||
machine_code: true,
|
machine_code: true,
|
||||||
}),
|
}),
|
||||||
|
#[cfg(target_arch = "aarch64")]
|
||||||
_ if triple.starts_with("aarch64") => {
|
_ if triple.starts_with("aarch64") => {
|
||||||
Target::initialize_aarch64(&InitializationConfig {
|
Target::initialize_aarch64(&InitializationConfig {
|
||||||
asm_parser: true,
|
asm_parser: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user