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

config := NewConfig()
config.UseSinglepassCompiler()

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