mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-06 04:38:25 +00:00
Simplified compiler config removing mutable features and target
This commit is contained in:
@@ -135,23 +135,12 @@ impl CompilerConfig for LLVMConfig {
|
||||
&self.features
|
||||
}
|
||||
|
||||
/// Gets the WebAssembly features, mutable
|
||||
fn features_mut(&mut self) -> &mut Features {
|
||||
&mut self.features
|
||||
}
|
||||
|
||||
/// Gets the target that we will use for compiling
|
||||
/// the WebAssembly module
|
||||
fn target(&self) -> &Target {
|
||||
&self.target
|
||||
}
|
||||
|
||||
/// Gets the target that we will use for compiling
|
||||
/// the WebAssembly module, mutable
|
||||
fn target_mut(&mut self) -> &mut Target {
|
||||
&mut self.target
|
||||
}
|
||||
|
||||
/// Transform it into the compiler
|
||||
fn compiler(&self) -> Box<dyn Compiler> {
|
||||
Box::new(LLVMCompiler::new(&self))
|
||||
|
||||
Reference in New Issue
Block a user