Skip to content

Commit

Permalink
Merge pull request #448 from ruby/pr-c9002472d4626320c60d71409ae7b77b…
Browse files Browse the repository at this point in the history
…1702924f

Skip building the native extension of js gem except for wasm platforms
  • Loading branch information
kateinoigakukun authored May 4, 2024
2 parents 94ce022 + 23f3d4b commit dde5b52
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/gems/js/ext/js/extconf.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
require "mkmf"

MakeMakefile::RbConfig ||= RbConfig
unless MakeMakefile::RbConfig::CONFIG["platform"] =~ /wasm/
$stderr.puts "This extension is only for WebAssembly. Creating a dummy Makefile."
create_makefile("js")
return
end

$objs = %w[js-core.o witapi-core.o]

use_component_model = enable_config("component-model", false)
Expand Down

0 comments on commit dde5b52

Please sign in to comment.