Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions test/test_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -15897,6 +15897,24 @@ def test_deprecated_settings(self):
err = self.run_process([EMCC, '-sUSE_PTHREADS', test_file('hello_world.c')], stderr=PIPE).stderr
self.assertContained('emcc: warning: USE_PTHREADS is deprecated (prefer the standard -pthread flag). Please open a bug if you have a continuing need for this setting [-Wdeprecated]', err)

def test_setting_sets_validity(self):
from tools.settings import (
COMPILE_TIME_SETTINGS,
EXPERIMENTAL_SETTINGS,
INTERNAL_SETTINGS,
JS_ONLY_SETTINGS,
MEM_SIZE_SETTINGS,
)
setting_names = (
COMPILE_TIME_SETTINGS
| JS_ONLY_SETTINGS
| MEM_SIZE_SETTINGS
| INTERNAL_SETTINGS
| set(EXPERIMENTAL_SETTINGS)
)
for name in setting_names:
self.assertIn(name, settings.attrs, f"setting '{name}' in tools/settings.py does not exist in settings.js or settings_internal.js")

def test_cross_origin_storage(self):
self.run_process([EMCC, test_file('hello_world.c'), '-sCROSS_ORIGIN_STORAGE', '-o', 'hello.js'])
js = read_file('hello.js')
Expand Down
1 change: 0 additions & 1 deletion tools/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@
# Internal settings used during compilation
'EXCEPTION_CATCHING_ALLOWED',
'WASM_EXCEPTIONS',
'LTO',
'OPT_LEVEL',
'DEBUG_LEVEL',
}.union(PORTS_SETTINGS)
Expand Down
Loading