Skip to content

Commit 53274f2

Browse files
committed
Emit a warning when linking with -sEXPORT_NAME=config
1 parent 0e54be7 commit 53274f2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

emcc.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3767,7 +3767,10 @@ def modularize():
37673767
if not settings.EXPORT_READY_PROMISE:
37683768
return_value = '{}'
37693769

3770-
# FIXME: https://bugs.webkit.org/show_bug.cgi?id=223533
3770+
# TODO: Remove when https://bugs.webkit.org/show_bug.cgi?id=223533 is resolved.
3771+
if async_emit != '' and settings.EXPORT_NAME == 'config':
3772+
diagnostics.warning('emcc', 'EXPORT_NAME should not be named "config" when targeting Safari')
3773+
37713774
src = '''
37723775
%(maybe_async)sfunction(config) {
37733776
var %(EXPORT_NAME)s = config || {};

0 commit comments

Comments
 (0)