// UseCraneliftCompiler sets the compiler to Cranelift in the configuration.
//
//   config := NewConfig()
//   config.UseCraneliftCompiler()
//
// This method might fail if the Cranelift compiler isn't
// available. Check `IsCompilerAvailable` to learn more.
UseCraneliftCompiler sets the compiler to Cranelift in the configuration.

config := NewConfig()
config.UseCraneliftCompiler()

This method might fail if the Cranelift compiler isn't
available. Check `IsCompilerAvailable` to learn more.
// UseCraneliftCompiler sets the compiler to Cranelift in the configuration . // // config : = NewConfig () // config . UseCraneliftCompiler () // // This method might fail if the Cranelift compiler isn ' t // available . Check ` IsCompilerAvailable ` to learn more .
func (self *Config) UseCraneliftCompiler() *Config {
	if !IsCompilerAvailable(CRANELIFT) {
		panic("This `wasmer-go` version doesn't include the Cranelift compiler; use `IsCompilerAvailable(CRANELIFT)` to avoid this panic")
	}
	C.wasm_config_set_compiler(self.inner(), uint32(C.wasmer_compiler_t(CRANELIFT)))
	return self
}
func ( self * Config ) UseCraneliftCompiler ( ) * Config { if ! IsCompilerAvailable ( CRANELIFT ) { panic ( " " ) } C . wasm_config_set_compiler ( self . inner ( ) , uint32 ( C . wasmer_compiler_t ( CRANELIFT ) ) ) return self }
UseCraneliftCompiler sets the compiler to Cranelift in the configuration.
UseCraneliftCompiler sets the compiler to Cranelift in the configuration .