ChimeHQ / SwiftTreeSitter

Swift API for the tree-sitter incremental parsing system
BSD 3-Clause "New" or "Revised" License
271 stars 30 forks source link

Workaround to make it compile in WASM #9

Closed fjtrujy closed 2 years ago

fjtrujy commented 2 years ago

The generated code for tree-sitter-swift is that long that is making the WASM generation to exceed the local limits. Using wasm-opt -O is improving the generated code avoiding the issue.

https://github.com/ChimeHQ/SwiftTreeSitter/issues/8

This is a workaround, I have already notified the Swift WASM toolchain guys to try to solve that issue.

Cheers

mattmassicotte commented 2 years ago

Thank you so much!