Class: RubyWasm::Emscripten
- Defined in:
- lib/ruby_wasm/build/toolchain.rb,
sig/ruby_wasm/build.rbs
Instance Attribute Summary
Attributes inherited from Toolchain
Instance Method Summary collapse
- #find_tool(name) ⇒ String
-
#initialize ⇒ Emscripten
constructor
A new instance of Emscripten.
- #install(executor) ⇒ Object
Methods inherited from Toolchain
#ar, #cc, #check_envvar, check_executable, #cxx, find_path, get, #ld, #ranlib
Constructor Details
#initialize ⇒ Emscripten
Returns a new instance of Emscripten.
269 270 271 272 273 274 275 276 277 278 |
# File 'lib/ruby_wasm/build/toolchain.rb', line 269 def initialize @tools = { cc: "emcc", cxx: "em++", ld: "emcc", ar: "emar", ranlib: "emranlib" } @name = "emscripten" end |
Instance Method Details
#find_tool(name) ⇒ String
283 284 285 286 |
# File 'lib/ruby_wasm/build/toolchain.rb', line 283 def find_tool(name) Toolchain.check_executable(@tools[name]) @tools[name] end |
#install(executor) ⇒ Object
280 281 |
# File 'lib/ruby_wasm/build/toolchain.rb', line 280 def install(executor) end |