Skip to content

Commit a4ca905

Browse files
committed
Link with -sTEXTDECODER=2
This makes the code smaller and gets rid of a buggy code path. We switched to this upstream to fix a test: see python/cpython#136624.
1 parent f7083f2 commit a4ca905

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile.envs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ export MAIN_MODULE_LDFLAGS= $(LDFLAGS_BASE) \
174174
-s NODEJS_CATCH_EXIT=0 \
175175
-s NODEJS_CATCH_REJECTION=0 \
176176
-s EXPORTED_FUNCTIONS='$(EXPORTS)'\
177+
-s TEXTDECODER=2 \
177178
-s EXIT_RUNTIME \
178179
-sERROR_ON_UNDEFINED_SYMBOLS=0 \
179180
\

0 commit comments

Comments
 (0)