Skip to content

Commit bf6eadf

Browse files
authored
[file-packager] Warn about mixing --preload and --embed in the same command. NFC (emscripten-core#24806)
See emscripten-core#24803
1 parent 0af682e commit bf6eadf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/file_packager.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,11 @@ def main(): # noqa: C901, PLR0912, PLR0915
466466
options.has_preloaded = any(f.mode == 'preload' for f in data_files)
467467
options.has_embedded = any(f.mode == 'embed' for f in data_files)
468468

469+
if options.has_preloaded and options.has_embedded:
470+
diagnostics.warn('support for using --preload and --embed in the same command is scheduled '
471+
'for deprecation. If you need this feature please comment at '
472+
'https://github.com/emscripten-core/emscripten/issues/24803')
473+
469474
if options.separate_metadata:
470475
if not options.has_preloaded or not options.jsoutput:
471476
err('cannot separate-metadata without both --preloaded files '

0 commit comments

Comments
 (0)