Class: RubyWasm::Emscripten
- Defined in:
- lib/ruby_wasm/build/toolchain.rb
Instance Attribute Summary
Attributes inherited from Toolchain
Instance Method Summary collapse
- #find_tool(name) ⇒ Object
-
#initialize ⇒ Emscripten
constructor
A new instance of Emscripten.
- #install ⇒ Object
Methods inherited from Toolchain
#check_envvar, check_executable, find_path, get
Constructor Details
#initialize ⇒ Emscripten
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 |
#install ⇒ Object
186 187 |
# File 'lib/ruby_wasm/build/toolchain.rb', line 186 def install end |