We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When initializing the Engine from CompilerOptions::get_engine(), compiling a module crashes with
Engine
CompilerOptions::get_engine()
3: wasmer_compiler::engine::code_memory::CodeMemory::allocate 4: wasmer_compiler::engine::inner::EngineInner::allocate 5: wasmer_compiler::engine::artifact::Artifact::from_parts 6: wasmer_compiler::engine::artifact::Artifact::new 7: wasmer_compiler::engine::inner::Engine::compile 8: wasmer::sys::module::Module::from_binary 9: wasmer_cli::commands::create_exe::get_module_infos 10: wasmer_cli::commands::create_exe::CreateExe::execute 11: wasmer_cli::cli::wasmer_main_inner 12: wasmer_cli::cli::wasmer_main
... if the target is set to Windows.
target
Windows
Minimal example:
use std::str::FromStr; use wasmer::*; // v3.1.0 const WASM_BYTES: &[u8] = include_bytes!("qjs.wasm"); fn main() { let engine = EngineBuilder::new(Box::new(wasmer_compiler_cranelift::Cranelift::default()) as Box<_>) .set_target(Some(Target::new(Triple::from_str("x86_64-windows-gnu").unwrap(), [CpuFeature::SSE2].into_iter().collect()))); let store = Store::new(engine.engine()); let module = Module::new(&store, WASM_BYTES).unwrap(); println!("{:#?}", module.name()); }
This can be disabled by setting the target.operating_system to anything but Windows.
target.operating_system
The text was updated successfully, but these errors were encountered:
Disable set_target(Some(target)) for Engine builder
32fbfc3
See #3508
Ignore trap_pretty_print test on Windows as eh_frame has been disable…
97ae242
…d (linked to #3508)
Made unwind handling cross-platform, with some limitation on Windows …
9a035aa
…unwind info that needs Windows syscall for now (for #3508)
Fixed with #3573
Sorry, something went wrong.
ptitSeb
Successfully merging a pull request may close this issue.
When initializing the
Engine
fromCompilerOptions::get_engine()
, compiling a module crashes with... if the
target
is set toWindows
.Minimal example:
This can be disabled by setting the
target.operating_system
to anything butWindows
.The text was updated successfully, but these errors were encountered: