Skip to content

Commit 129bbae

Browse files
committed
3.1.69.4
1 parent ddd35b6 commit 129bbae

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

emsdk-cc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ MODE = ""
122122
SKIP = False
123123
COMPILE = False
124124

125+
USE_RAWFS = True
126+
125127
out = []
126128
for argc, arg in enumerate(sys.argv):
127129
if arg in ("-v", "--version"):
@@ -132,6 +134,9 @@ for argc, arg in enumerate(sys.argv):
132134
SKIP = True
133135
break
134136

137+
if arg.startswith('--preload-file') or arg.startswith('--embed-file'):
138+
USE_RAWFS = False
139+
135140
if arg.find("MAIN_MODULE") > 0 or EXE.endswith(".cjs") or EXE.endswith(".js"):
136141
MAIN_MODULE = True
137142

@@ -247,7 +252,8 @@ else:
247252
os.chmod(EXE, 0o766)
248253

249254
final.append("-sENVIRONMENT=node")
250-
final.append("-sNODERAWFS")
255+
if USE_RAWFS:
256+
final.append("-sNODERAWFS")
251257
__import__("atexit").register(make_exe)
252258

253259
# do not pass WASM opts when -c/-o but always PIC and opt level

python-wasi-sdk.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,14 @@ END
225225
echo " --------- adding some usefull pkg ${PYBUILD} ${CIVER} ---------" 1>&2
226226
./scripts/cpython-build-emsdk-prebuilt.sh || exit 223
227227

228+
229+
# experimental stuff
230+
chmod +x sources.plus/*.sh
231+
for extra in sources.plus/*.sh
232+
do
233+
./$extra
234+
done
235+
228236
echo "
229237
230238
==========================================================

python-wasm-sdk.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,14 @@ END
225225
echo " --------- adding some usefull pkg ${PYBUILD} ${CIVER} ---------" 1>&2
226226
./scripts/cpython-build-emsdk-prebuilt.sh || exit 223
227227

228+
229+
# experimental stuff
230+
chmod +x sources.plus/*.sh
231+
for extra in sources.plus/*.sh
232+
do
233+
./$extra
234+
done
235+
228236
echo "
229237
230238
==========================================================
File renamed without changes.

0 commit comments

Comments
 (0)