|
18 | 18 | raise Exception('do not run this file directly; do something like: test/runner') |
19 | 19 |
|
20 | 20 | from tools.shared import PIPE |
21 | | -from tools.shared import EMCC, EMAR, FILE_PACKAGER |
| 21 | +from tools.shared import EMCC, EMAR, EMXX, FILE_PACKAGER |
22 | 22 | from tools.utils import WINDOWS, MACOS, LINUX, write_file, delete_file |
23 | 23 | from tools import shared, building, config, utils, webassembly |
24 | 24 | import common |
@@ -9753,12 +9753,14 @@ def test_modularize_instance(self, args): |
9753 | 9753 |
|
9754 | 9754 | self.assertContained('main1\nmain2\nfoo\nbar\nbaz\n', self.run_js('runner.mjs')) |
9755 | 9755 |
|
| 9756 | + @no_4gb('EMBIND_AOT can\'t lower 4gb') |
9756 | 9757 | def test_modularize_instance_embind(self): |
9757 | | - self.run_process([EMCC, test_file('modularize_instance_embind.cpp'), |
| 9758 | + self.run_process([EMXX, test_file('modularize_instance_embind.cpp'), |
9758 | 9759 | '-sMODULARIZE=instance', |
| 9760 | + '-Wno-experimental', |
9759 | 9761 | '-lembind', |
9760 | 9762 | '-sEMBIND_AOT', |
9761 | | - '-o', 'modularize_instance_embind.mjs']) |
| 9763 | + '-o', 'modularize_instance_embind.mjs'] + self.get_emcc_args()) |
9762 | 9764 |
|
9763 | 9765 | create_file('runner.mjs', ''' |
9764 | 9766 | import init, { foo, Bar } from "./modularize_instance_embind.mjs"; |
|
0 commit comments