-
Notifications
You must be signed in to change notification settings - Fork 207
Open
Description
It throws on this line as a result
sqlite3-ruby/ext/sqlite3/extconf.rb
Line 70 in 16470de
unless File.exist?(File.join(recipe.target, recipe.host, recipe.name, recipe.version)) |
I do use a mswin built of ruby (ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x64-mswin64_140]
) in this specific case, but I can reproduce using 2.7.2 mingw.
Miniportile2 uses the output of running gcc -v
to detect the host, and obviously this fails in this case.
I am able to work around it by using the same code as nokogiri: https://github.com/sparklemotion/nokogiri/blob/d7ee3b683246a9fdc19c51aabc98868dc8dcf134/ext/nokogiri/extconf.rb#L443-L446
# We use 'host' to set compiler prefix for cross-compiling. Prefer host_alias over host. And
# prefer i686 (what external dev tools use) to i386 (what ruby's configure.ac emits).
recipe.host = RbConfig::CONFIG["host_alias"].empty? ? RbConfig::CONFIG["host"] : RbConfig::CONFIG["host_alias"]
recipe.host = recipe.host.gsub("i386", "i686")
Metadata
Metadata
Assignees
Labels
No labels