File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 1818 if git clone --no-tags --depth 1 --single-branch --branch main https://github.com/emscripten-core/emsdk.git
1919 then
2020 pushd emsdk
21+ git checkout 91f8563a9d1a4a0ec03bbb2be23485367d85a091
2122 ./emsdk install ${EMFLAVOUR:- latest}
2223 ./emsdk activate ${EMFLAVOUR:- latest}
2324 pushd upstream/emscripten
@@ -162,6 +163,17 @@ SHARED=""
162163IS_SHARED=false
163164PY_MODULE=false
164165MVP=\$ {MVP:true}
166+
167+ if \$ MVP
168+ then
169+ # -mcpu=generic would activate those https://reviews.llvm.org/D125728
170+ # https://github.com/emscripten-core/emscripten/pull/17689
171+ CPU="-mno-sign-ext -mno-mutable-globals -m32"
172+ else
173+ CPU="-mcpu=bleeding-edge -m32"
174+ fi
175+
176+
165177LINKING=\$ {LINKING:-false}
166178
167179if echo "\$ @ "|grep -q "\\ .so "
298310
299311if \$ IS_SHARED
300312then
301- $EMSDK_PYTHON -E \$ 0.py \$ SHARED -m32 $COPTS $LDFLAGS -sSIDE_MODULE -gsource-map --source-map-base / "\$ @" \$ COMMON
313+ $EMSDK_PYTHON -E \$ 0.py \$ SHARED $CPU $COPTS $LDFLAGS -sSIDE_MODULE -gsource-map --source-map-base / "\$ @" \$ COMMON
302314 if \$ MVP
303315 then
304316 SOTMP=\$ (mktemp).so
308320 rm \$ SOTMP
309321 fi
310322else
311- $EMSDK_PYTHON -E \$ 0.py -m32 \$ COPTS \$ CPPFLAGS -DBUILD_STATIC "\$ @" \$ COMMON
323+ $EMSDK_PYTHON -E \$ 0.py $CPU \$ COPTS \$ CPPFLAGS -DBUILD_STATIC "\$ @" \$ COMMON
312324fi
313325#else
314326# unset _EMCC_CCACHE
You can’t perform that action at this time.
0 commit comments