@@ -9349,7 +9349,7 @@ def test_standalone_system_headers(self):
9349
9349
# everything it needs.
9350
9350
directories = {'': []}
9351
9351
for elem in os.listdir(path_from_root('system/include')):
9352
- if elem in ('compat', ' fakesdl') :
9352
+ if elem == ' fakesdl':
9353
9353
continue
9354
9354
full = path_from_root('system/include', elem)
9355
9355
if os.path.isdir(full):
@@ -9373,19 +9373,22 @@ def test_standalone_system_headers(self):
9373
9373
cxx_only = header in [
9374
9374
'wire.h', 'val.h', 'bind.h',
9375
9375
'webgpu_cpp.h', 'webgpu_cpp_chained_struct.h', 'webgpu_enum_class_bitmasks.h',
9376
+ # Some headers are not yet C compatible
9377
+ 'arm_neon.h', 'avxintrin.h', 'immintrin.h',
9376
9378
]
9377
- if directory:
9379
+ if directory and directory != 'compat' :
9378
9380
header = f'{directory}/{header}'
9379
9381
inc = f'#include <{header}>\n__attribute__((weak)) int foo;\n'
9382
+ cflags = ['-Werror', '-Wall', '-pedantic', '-mavx', '-msimd128', '-msse3']
9380
9383
if cxx_only:
9381
9384
create_file('a.cxx', inc)
9382
9385
create_file('b.cxx', inc)
9383
- self.run_process([EMXX, '-Werror ', '-Wall', '-pedantic', ' a.cxx', 'b.cxx'])
9386
+ self.run_process([EMXX, '-msse3 ', 'a.cxx', 'b.cxx'] + cflags )
9384
9387
else:
9385
9388
create_file('a.c', inc)
9386
9389
create_file('b.c', inc)
9387
9390
for std in ([], ['-std=c89']):
9388
- self.run_process([EMCC] + std + ['-Werror' , '-Wall', '-pedantic', ' a.c', 'b.c'])
9391
+ self.run_process([EMCC, 'a.c', 'b.c'] + std + cflags )
9389
9392
9390
9393
@is_slow_test
9391
9394
@parameterized({
0 commit comments