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:
parent
7d4fdf9a75
commit
571e8a6f8e
2
milepost
2
milepost
|
@ -1 +1 @@
|
|||
Subproject commit 28e0a6c88e3fb272d376d458a875300bb1531e23
|
||||
Subproject commit bc0388714821eea6dd8a4e72bc24f2a899e9123f
|
|
@ -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../.."
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue