Skip to content

Commit 510d3b1

Browse files
committed
Warn on emterpreter usage
Seems like a good first step before #11020.
1 parent 66303da commit 510d3b1

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ See docs/process.md for how version tagging works.
1717

1818
Current Trunk
1919
-------------
20+
- Add warning on use of `EMTERPRETIFY` which is due to be removed.
2021
- Emscripten can now compile assembly files in llvm's .s/.S file format.
2122
- Remove test-only environment variable handling for `EMCC_LEAVE_INPUTS_RAW`.
2223
The two uses cases in our test code were covered by the `-nostdlib` option.

emcc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,6 +1415,7 @@ def has_c_source(args):
14151415
exit_with_error('ASYNCIFY has been removed from fastcomp. There is a new implementation which can be used in the upstream wasm backend.')
14161416

14171417
if shared.Settings.EMTERPRETIFY:
1418+
diagnostics.warning('emterpreter', 'emterpreter is soon to be deprecated. If you depend on this feature please reach out on github for help transiationing.')
14181419
shared.Settings.FINALIZE_ASM_JS = 0
14191420
shared.Settings.SIMPLIFY_IFS = 0 # this is just harmful for emterpreting
14201421
shared.Settings.EXPORTED_FUNCTIONS += ['emterpret']

tools/shared.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
diagnostics.add_warning('emcc')
6767
diagnostics.add_warning('undefined')
6868
diagnostics.add_warning('version-check')
69+
diagnostics.add_warning('emterpreter')
6970
diagnostics.add_warning('unused-command-line-argument', shared=True)
7071

7172

0 commit comments

Comments
 (0)