Skip to content

Commit c6edc92

Browse files
committed
build(crossruby): clarify dump_ast configure arg
Add a short comment explaining why cross builds pass the host-built dump_ast to configure.
1 parent 3ed8e19 commit c6edc92

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/ruby_wasm/build/product/crossruby.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,8 @@ def configure_args(build_triple, toolchain)
340340
args << %Q(--with-zlib-dir=#{@zlib.install_root})
341341
args << %Q(--with-openssl-dir=#{@openssl.install_root}) if @openssl
342342
args << %Q(--with-baseruby=#{baseruby_path})
343+
# Use the host-built dump_ast so cross builds don't try to execute the
344+
# target-side wasm dump_ast while generating .rbinc files.
343345
args << %Q(--with-dump-ast=#{dump_ast_path})
344346

345347
case target

0 commit comments

Comments
 (0)