Skip to content

Commit c781694

Browse files
committed
opt for size
1 parent 80b6f41 commit c781694

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

scripts/build-loader.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ export DYNLOAD=${SDKROOT}/prebuilt/emsdk/${PYBUILD}/lib-dynload
4646

4747
EMPIC=${EMSDK}/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/pic
4848

49-
49+
# CF_SDL="-sUSE_SDL=3"
5050
CF_SDL="${PREFIX}/lib/libSDL3.a \
5151
${PREFIX}/lib/libSDL3_image.a ${PREFIX}/lib/libSDL3_ttf.a \
5252
$EMPIC/libfreetype.a \
5353
$EMPIC/libharfbuzz.a"
54-
# CF_SDL="-sUSE_SDL=3"
5554
CF_SDL=""
5655

56+
# this one seems always in.
5757
# $EMPIC/libal.a"
5858

5959
echo "
@@ -72,8 +72,6 @@ CF_SDL=$CF_SDL
7272

7373

7474

75-
76-
7775
mkdir -p $DIST_DIR/${DISTRO}${PYMAJOR}${PYMINOR}
7876

7977
rm $DIST_DIR/${DISTRO}${PYMAJOR}${PYMINOR}/main.* 2>/dev/null
@@ -340,7 +338,7 @@ then
340338
cat > final_link.sh <<END
341339
#!/bin/bash
342340
. $SDKROOT/emsdk/emsdk_env.sh
343-
COPTS="-O0 -g3 $LOPTS" emcc -D__PYGBAG__ \\
341+
COPTS="-Os -g0 $LOPTS" emcc -D__PYGBAG__ \\
344342
$FINAL_OPTS \\
345343
-DNDEBUG \\
346344
-sTOTAL_MEMORY=256MB -sSTACK_SIZE=8MB -sALLOW_TABLE_GROWTH -sALLOW_MEMORY_GROWTH \\

0 commit comments

Comments
 (0)