编译到 wasm 但不生成 html #3440
guyutongxue
started this conversation in
General
Replies: 2 comments 1 reply
-
生成 html 的同时,也会同时生成 .js 和 wasm ,既然你只用这两,就假装没看见 .html 不就好了。 或者自己 after_build 里面,把 .html 自己删了。。 暂时不能自定义,也没必要 |
Beta Was this translation helpful? Give feedback.
1 reply
-
还是有一点影响,例如 emscripten 的这个连接选项 -s EXPORT_NAME=initWasmModule,在 -o xxx.html 和 -o xxx.js 的时候,有不同的行为。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
貌似 xmake 将平台设置到 wasm / emscripten 后,会设置输出选项为
-o $(name).html
xmake/xmake/platforms/wasm/xmake.lua
Line 37 in aeb7ae9
但是大部分时候我们只需要 js 胶水 + wasm,也就是输出选项是
-o $(name).js
参考这个能不能自定义呢?
Beta Was this translation helpful? Give feedback.
All reactions