@@ -3023,25 +3023,26 @@ def test_embind_tsgen_ignore(self):
3023
3023
create_file('fail.js', 'assert(false);')
3024
3024
# These extra arguments are not related to TS binding generation but we want to
3025
3025
# verify that they do not interfere with it.
3026
- extra_args = ['-sALLOW_MEMORY_GROWTH=1',
3027
- '-sMAXIMUM_MEMORY=4GB',
3028
- '--pre-js', 'fail.js',
3029
- '--post-js', 'fail.js',
3030
- '--extern-pre-js', 'fail.js',
3031
- '--extern-post-js', 'fail.js',
3032
- '-sENVIRONMENT=worker',
3033
- '--use-preload-cache',
3034
- '--preload-file', 'fail.js',
3035
- '-O3',
3036
- '-msimd128',
3037
- '-sUSE_PTHREADS',
3038
- '-sPROXY_TO_PTHREAD',
3039
- '-sPTHREAD_POOL_SIZE=1',
3040
- '-sSINGLE_FILE',
3041
- '-lembind', # Test duplicated link option.
3042
- ]
3026
+ self.emcc_args += ['-sALLOW_MEMORY_GROWTH=1',
3027
+ '-Wno-pthreads-mem-growth',
3028
+ '-sMAXIMUM_MEMORY=4GB',
3029
+ '--pre-js', 'fail.js',
3030
+ '--post-js', 'fail.js',
3031
+ '--extern-pre-js', 'fail.js',
3032
+ '--extern-post-js', 'fail.js',
3033
+ '-sENVIRONMENT=worker',
3034
+ '--use-preload-cache',
3035
+ '--preload-file', 'fail.js',
3036
+ '-O3',
3037
+ '-msimd128',
3038
+ '-pthread',
3039
+ '-sPROXY_TO_PTHREAD',
3040
+ '-sPTHREAD_POOL_SIZE=1',
3041
+ '-sSINGLE_FILE',
3042
+ '-lembind', # Test duplicated link option.
3043
+ ]
3043
3044
self.run_process([EMCC, test_file('other/embind_tsgen.cpp'),
3044
- '-lembind', '--embind-emit-tsd', 'embind_tsgen.d.ts'] + extra_args )
3045
+ '-lembind', '--embind-emit-tsd', 'embind_tsgen.d.ts'] + self.get_emcc_args() )
3045
3046
self.assertFileContents(test_file('other/embind_tsgen.d.ts'), read_file('embind_tsgen.d.ts'))
3046
3047
# Test these args separately since they conflict with arguments in the first test.
3047
3048
extra_args = ['-sMODULARIZE',
@@ -3055,7 +3056,11 @@ def test_embind_tsgen_ignore(self):
3055
3056
def test_embind_tsgen_test_embind(self):
3056
3057
self.run_process([EMCC, test_file('embind/embind_test.cpp'),
3057
3058
'-lembind', '--embind-emit-tsd', 'embind_tsgen_test_embind.d.ts',
3058
- '-DSKIP_UNBOUND_TYPES']) # TypeScript generation requires all type to be bound.
3059
+ # This test explicitly creates std::string from unsigned char pointers
3060
+ # which is deprecated in upstream LLVM.
3061
+ '-Wno-deprecated-declarations',
3062
+ # TypeScript generation requires all type to be bound.
3063
+ '-DSKIP_UNBOUND_TYPES'] + self.get_emcc_args())
3059
3064
self.assertExists('embind_tsgen_test_embind.d.ts')
3060
3065
3061
3066
def test_embind_tsgen_val(self):
@@ -3076,7 +3081,8 @@ def test_embind_tsgen_bigint(self):
3076
3081
def test_embind_tsgen_memory64(self):
3077
3082
# Check that when memory64 is enabled longs & unsigned longs are mapped to bigint in the generated TS bindings
3078
3083
self.run_process([EMCC, test_file('other/embind_tsgen_memory64.cpp'),
3079
- '-lembind', '--embind-emit-tsd', 'embind_tsgen_memory64.d.ts', '-sMEMORY64'])
3084
+ '-lembind', '--embind-emit-tsd', 'embind_tsgen_memory64.d.ts', '-sMEMORY64', '-Wno-experimental'] +
3085
+ self.get_emcc_args())
3080
3086
self.assertFileContents(test_file('other/embind_tsgen_memory64.d.ts'), read_file('embind_tsgen_memory64.d.ts'))
3081
3087
3082
3088
def test_emconfig(self):
0 commit comments