[][src]Trait wasmer::CompilerConfig

pub trait CompilerConfig {
    pub fn compiler(
        self: Box<Self, Global>
    ) -> Box<dyn Compiler + 'static, Global>;
pub fn push_middleware(
        &mut self,
        middleware: Arc<dyn ModuleMiddleware + 'static>
    ); pub fn enable_pic(&mut self) { ... }
pub fn enable_verifier(&mut self) { ... }
pub fn default_features_for_target(&self, _target: &Target) -> Features { ... } }

The compiler configuration options.

Required methods

pub fn compiler(self: Box<Self, Global>) -> Box<dyn Compiler + 'static, Global>[src]

Gets the custom compiler config

pub fn push_middleware(
    &mut self,
    middleware: Arc<dyn ModuleMiddleware + 'static>
)
[src]

Pushes a middleware onto the back of the middleware chain.

Loading content...

Provided methods

pub fn enable_pic(&mut self)[src]

Enable Position Independent Code (PIC).

This is required for shared object generation (Native Engine), but will make the JIT Engine to fail, since PIC is not yet supported in the JIT linking phase.

pub fn enable_verifier(&mut self)[src]

Enable compiler IR verification.

For compilers capable of doing so, this enables internal consistency checking.

pub fn default_features_for_target(&self, _target: &Target) -> Features[src]

Gets the default features for this compiler in the given target

Loading content...

Implementors

impl CompilerConfig for Cranelift[src]

pub fn compiler(
    self: Box<Cranelift, Global>
) -> Box<dyn Compiler + 'static, Global>
[src]

Transform it into the compiler

pub fn push_middleware(
    &mut self,
    middleware: Arc<dyn ModuleMiddleware + 'static>
)
[src]

Pushes a middleware onto the back of the middleware chain.

Loading content...