mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
wasm: add a webassembly compiler backend, based on using binaryen (#17368)
This commit is contained in:
parent
b9a8a21094
commit
0625caad56
51 changed files with 7981 additions and 8 deletions
|
@ -252,6 +252,18 @@ pub fn new_test_session(_vargs string, will_compile bool) TestSession {
|
|||
$if !macos {
|
||||
skip_files << 'examples/macos_tray/tray.v'
|
||||
}
|
||||
// examples/wasm/mandelbrot/mandelbrot.v requires special compilation flags: `-b wasm -os browser`, skip it for now:
|
||||
skip_files << 'examples/wasm/mandelbrot/mandelbrot.v'
|
||||
|
||||
// TODO: always build the wasm_builder in the future, not just when it was build manually before:
|
||||
wasm_builder_executable := $if !windows {
|
||||
'cmd/tools/builders/wasm_builder'
|
||||
} $else {
|
||||
'cmd/tools/builders/wasm_builder.exe'
|
||||
}
|
||||
if !os.exists(wasm_builder_executable) {
|
||||
skip_files << os.join_path('cmd/tools/builders/wasm_builder.v')
|
||||
}
|
||||
}
|
||||
vargs := _vargs.replace('-progress', '')
|
||||
vexe := pref.vexe_path()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue