Class: RubyWasm::Emscripten

Inherits:
Toolchain show all
Defined in:
lib/ruby_wasm/build/toolchain.rb

Instance Attribute Summary

Attributes inherited from Toolchain

#name

Instance Method Summary collapse

Methods inherited from Toolchain

#check_envvar, check_executable, find_path, get

Constructor Details

#initializeEmscripten

Returns a new instance of Emscripten.



181
182
183
184
# File 'lib/ruby_wasm/build/toolchain.rb', line 181

def initialize
  @tools = { cc: "emcc", cxx: "em++", ld: "emcc", ar: "emar", ranlib: "emranlib" }
  @name = "emscripten"
end

Instance Method Details

#find_tool(name) ⇒ Object



189
190
191
192
# File 'lib/ruby_wasm/build/toolchain.rb', line 189

def find_tool(name)
  Toolchain.check_executable(@tools[name])
  @tools[name]
end

#installObject



186
187
# File 'lib/ruby_wasm/build/toolchain.rb', line 186

def install
end