File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -795,11 +795,6 @@ def check_dylink(self):
795
795
self .skipTest ('no dynamic linking support in wasm2js yet' )
796
796
if '-fsanitize=undefined' in self .emcc_args :
797
797
self .skipTest ('no dynamic linking support in UBSan yet' )
798
- # Temporarily enableing WASM_BIGINT in all dylink tests in order to allow
799
- # a recent llvm change to land:
800
- # https://github.com/llvm/llvm-project/pull/75242
801
- # Once that lands we can use --no-shlib-sigcheck instead.
802
- self .set_setting ('WASM_BIGINT' )
803
798
# MEMORY64=2 mode doesn't currently support dynamic linking because
804
799
# The side modules are lowered to wasm32 when they are built, making
805
800
# them unlinkable with wasm64 binaries.
Original file line number Diff line number Diff line change @@ -194,6 +194,12 @@ def lld_flags_for_executable(external_symbols):
194
194
if settings .RELOCATABLE :
195
195
cmd .append ('--experimental-pic' )
196
196
cmd .append ('--unresolved-symbols=import-dynamic' )
197
+ if not settings .WASM_BIGINT :
198
+ # When we don't have WASM_BIGINT available, JS signature legalization
199
+ # in binaryen will mutate the signatures of the imports/exports of our
200
+ # shared libraries. Because of this we need to disabled signature
201
+ # checking of shared library functions in this case.
202
+ cmd .append ('--no-shlib-sigcheck' )
197
203
if settings .SIDE_MODULE :
198
204
cmd .append ('-shared' )
199
205
else :
You can’t perform that action at this time.
0 commit comments