Copy source files into source map file#22190
Closed
verhovsky wants to merge 1 commit intoemscripten-core:mainfrom
Closed
Copy source files into source map file#22190verhovsky wants to merge 1 commit intoemscripten-core:mainfrom
verhovsky wants to merge 1 commit intoemscripten-core:mainfrom
Conversation
a74fdff to
543f987
Compare
Author
|
To test this on M1 macOS, I had to brew install llvm
git checkout f2568054e3ab2251647e87c8bd651373e1b003b7make this edit diff --git a/tools/building.py b/tools/building.py
index 900918b44..d2fc19d60 100644
--- a/tools/building.py
+++ b/tools/building.py
@@ -39,7 +39,7 @@ logger = logging.getLogger('building')
# Building
binaryen_checked = False
-EXPECTED_BINARYEN_VERSION = 115
+EXPECTED_BINARYEN_VERSION = 117
_is_ar_cache: Dict[str, bool] = {}
# the exports the user requestedthen ./bootstrap
make
./emcc --generate-configthen edit .emscripten and change then make
./emcc --checkThen I did cd ..
git clone https://github.com/tree-sitter/tree-sitter.git
cd tree-sitter
git checkout 3abb1047made this edit there script/build-wasm | 1 +
1 file changed, 1 insertion(+)
diff --git a/script/build-wasm b/script/build-wasm
index d22b5875..c1a37414 100755
--- a/script/build-wasm
+++ b/script/build-wasm
@@ -117,6 +117,7 @@ exported_functions=$(
# Use emscripten to generate `tree-sitter.js` and `tree-sitter.wasm`
# in the `target/scratch` directory
+emcc=../emscripten/emcc
$emcc \
-s WASM=1 \
-s INITIAL_MEMORY=33554432 \then ran and it turns out that |
543f987 to
fdd89cc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #22189