Skip to content

Commit 6745590

Browse files
committed
chore(emscripten): extracting EXTRA_EXPORTED_RUNTIME_METHODS to file
1 parent dd37c4e commit 6745590

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

libsass/Makefile.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
+ emcc lib/libsass.a -o lib/libsass.js \
99
+ -O3 \
1010
+ -s EXPORTED_FUNCTIONS="['_sass_compile_emscripten']" \
11-
+ -s EXTRA_EXPORTED_RUNTIME_METHODS='["ccall", "Pointer_stringify", "getValue", "lengthBytesUTF8", "stringToUTF8"]' \
11+
+ -s EXTRA_EXPORTED_RUNTIME_METHODS=@../exported_runtime_methods.json \
1212
+ -s DISABLE_EXCEPTION_CATCHING=0 \
1313
+ -s ALLOW_MEMORY_GROWTH=1 \
1414
+ -s EMTERPRETIFY=1 \
@@ -20,7 +20,7 @@
2020
+ emcc lib/libsass.a -o lib/libsass.js \
2121
+ -O0 \
2222
+ -s EXPORTED_FUNCTIONS="['_sass_compile_emscripten']" \
23-
+ -s EXTRA_EXPORTED_RUNTIME_METHODS='["ccall", "Pointer_stringify", "getValue", "lengthBytesUTF8", "stringToUTF8"]' \
23+
+ -s EXTRA_EXPORTED_RUNTIME_METHODS=@../exported_runtime_methods.json \
2424
+ -s DISABLE_EXCEPTION_CATCHING=0 \
2525
+ -s ALLOW_MEMORY_GROWTH=1 \
2626
+ -s EMTERPRETIFY=1 \
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[
2+
"ccall",
3+
"Pointer_stringify",
4+
"getValue",
5+
"lengthBytesUTF8",
6+
"stringToUTF8"
7+
]

0 commit comments

Comments
 (0)