Skip to content

Commit 637bb1d

Browse files
authored
Forward EMULATE_FUNCTION_POINTER_CASTS to fastcomp (#7318)
1 parent 2e96555 commit 637bb1d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

emscripten.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,8 @@ def create_backend_args(infile, temp_js):
444444
args += ['-emscripten-no-aliasing-function-pointers']
445445
if shared.Settings.EMULATED_FUNCTION_POINTERS:
446446
args += ['-emscripten-emulated-function-pointers']
447+
if shared.Settings.EMULATE_FUNCTION_POINTER_CASTS:
448+
args += ['-emscripten-emulate-function-pointer-casts']
447449
if shared.Settings.RELOCATABLE:
448450
args += ['-emscripten-relocatable']
449451
args += ['-emscripten-global-base=0']

tests/test_other.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8245,7 +8245,7 @@ def test(filename, expectations):
82458245
0, [], ['tempDoublePtr', 'waka'], 8, 0, 0, 0), # noqa; totally empty!
82468246
# but we don't metadce with linkable code! other modules may want it
82478247
(['-O3', '-s', 'MAIN_MODULE=1'],
8248-
1529, ['invoke_i'], ['waka'], 469663, 149, 1443, None), # noqa; don't compare the # of functions in a main module, which changes a lot
8248+
1488, ['invoke_v'], ['waka'], 469663, 149, 1443, None), # noqa; don't compare the # of functions in a main module, which changes a lot
82498249
]) # noqa
82508250

82518251
print('test on a minimal pure computational thing')

0 commit comments

Comments
 (0)