Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate JS sourcemaps with --debug #3381

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

verhovsky
Copy link
Contributor

Follow up to #3380, works on #3379

if [[ "$debug" == "1" ]]; then
mv target/scratch/tree-sitter.wasm.map ${web_dir}/tree-sitter.wasm.map
# For source maps
rsync -Rr lib ${web_dir}/
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copying the directory into itself (lib/ into lib/binding_web/lib/) is not great. Also, this also requires (with my compiler on M1 macOS)

opt/homebrew/Cellar/emscripten/3.1.59/libexec/
opt/homebrew/Cellar/emscripten/3.1.59/libexec/cache/sysroot/include/atomic_arch.h
opt/homebrew/Cellar/emscripten/3.1.59/libexec/system/lib/compiler-rt/emscripten_exception_builtins.c 
opt/homebrew/Cellar/emscripten/3.1.59/libexec/system/lib/compiler-rt/emscripten_tempret.s
opt/homebrew/Cellar/emscripten/3.1.59/libexec/system/lib/compiler-rt/stack_limits.S
opt/homebrew/Cellar/emscripten/3.1.59/libexec/system/lib/compiler-rt/stack_ops.S
opt/homebrew/Cellar/emscripten/3.1.59/libexec/system/lib/libc/emscripten_get_heap_size.c
opt/homebrew/Cellar/emscripten/3.1.59/libexec/system/lib/libc/emscripten_memcpy.c
opt/homebrew/Cellar/emscripten/3.1.59/libexec/system/lib/libc/emscripten_syscall_stubs.c
opt/homebrew/Cellar/emscripten/3.1.59/libexec/system/lib/libc/emscripten_time.c
opt/homebrew/Cellar/emscripten/3.1.59/libexec/system/lib/libc/sbrk.c
opt/homebrew/Cellar/emscripten/3.1.59/libexec/system/lib/libc/wasi-helpers.c
opt/homebrew/Cellar/emscripten/3.1.59/libexec/system/lib/pthread/library_pthread_stub.c
opt/homebrew/Cellar/emscripten/3.1.59/libexec/system/lib/pthread/pthread_self_stub.c
opt/homebrew/Cellar/emscripten/3.1.59/libexec/system/lib/dImalloc.c

and a bunch of files from

opt/homebrew/Cellar/emscripten/3.1.59/libexec/system/lib/libc/musl/
opt/homebrew/Cellar/emscripten/3.1.59/libexec/system/lib/compiler-rt/lib/builtins/

(might contain typos, written with OCR)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants