class Wasmer::Config

Defined in:

wasmer/config.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def use_cranelift_compiler #

Sets the compiler to Cranelift. Will raise if Cranelift compiler is not supported by current binding. Check CompilerKind.available? to check the availability


[View source]
def use_dylib_engine #

Sets the engine to Dylib. Will raise if Dylib engine is not supported by current binding. Check EngineKind.available? to check the availability


[View source]
def use_llvm_compiler #

Sets the compiler to LLVM. Will raise if llvm compiler is not supported by current binding. Check CompilerKind.available? to check the availability


[View source]
def use_singlepass_compiler #

Sets the compiler to Singlepass. Will raise if Singlepass compiler is not supported by current binding. Check CompilerKind.available? to check the availability


[View source]
def use_staticlib_engine #

Sets the engine to Staticlib. Will raise if Staticlib engine is not supported by current binding. Check EngineKind.available? to check the availability


[View source]
def use_target(target : Target) #

Use a specific target for doing cross-compilation


[View source]
def use_universal_engine #

Sets the engine to Universal. Will raise if Universal engine is not supported by current binding. Check EngineKind.available? to check the availability


[View source]