We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 94ce022 + 23f3d4b commit dde5b52Copy full SHA for dde5b52
packages/gems/js/ext/js/extconf.rb
@@ -1,4 +1,12 @@
1
require "mkmf"
2
+
3
+MakeMakefile::RbConfig ||= RbConfig
4
+unless MakeMakefile::RbConfig::CONFIG["platform"] =~ /wasm/
5
+ $stderr.puts "This extension is only for WebAssembly. Creating a dummy Makefile."
6
+ create_makefile("js")
7
+ return
8
+end
9
10
$objs = %w[js-core.o witapi-core.o]
11
12
use_component_model = enable_config("component-model", false)
0 commit comments