Explicitly mark symbols imported from the runtime and avoid --allow-undefined (get compile-time errors on non-runtime-provided undefined symbols)

This commit is contained in:
Martin Fouilleul 2023-06-25 20:18:14 +02:00
parent 7d4fdf9a75
commit 571e8a6f8e
3 changed files with 2 additions and 3 deletions

@ -1 +1 @@
Subproject commit 28e0a6c88e3fb272d376d458a875300bb1531e23
Subproject commit bc0388714821eea6dd8a4e72bc24f2a899e9123f

View File

@ -5,7 +5,6 @@ wasmFlags="--target=wasm32 \
-fno-builtin \
-Wl,--no-entry \
-Wl,--export-dynamic \
-Wl,--allow-undefined \
-g \
-D__ORCA__ \
-I ../../src -I ../../sdk -I../../milepost/ext -I ../../milepost -I ../../milepost/src -I ../../milepost/src/util -I ../../milepost/src/platform -I../.."

View File

@ -57,7 +57,7 @@ for decl in data:
else:
s += decl['ret']['name']
s += ' ' + argPtrStubName + '('
s += ' ORCA_IMPORT(' + argPtrStubName + ') ('
if decl['ret']['tag'] == 'S':
s += decl['ret']['name'] + '* __retArg'