-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[file-packager] Drop support for --embed with JS output #25049
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The object file output is more efficient way of embedding and has been recommended via a warning since emscripten-core#16050 (early 2022). With this simplification the file packager now has essentially two output modes: 1. Preloading via JS 2. Embedding via and object file
kripken
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a changelog mention.
| diagnostics.warn('support for using --preload and --embed in the same command is scheduled ' | ||
| 'for deprecation. If you need this feature please comment at ' | ||
| 'https://github.com/emscripten-core/emscripten/issues/24803') | ||
| diagnostics.error('--preload and --embed now now mutually exclusive (See https://github.com/emscripten-core/emscripten/issues/24803') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| diagnostics.error('--preload and --embed now now mutually exclusive (See https://github.com/emscripten-core/emscripten/issues/24803') | |
| diagnostics.error('--preload and --embed are mutually exclusive (See https://github.com/emscripten-core/emscripten/issues/24803') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(even a single "now" seems unneeded to me - we can just state the current rules, not a change in them)
| diagnostics.error('--preload and --embed now now mutually exclusive (See https://github.com/emscripten-core/emscripten/issues/24803') | ||
|
|
||
| if options.has_embedded and not options.obj_output: | ||
| diagnostics.error('--obj-output is now required when using --embed. This outputs an object file for linking directly into your application is more efficient than the old JS encoding') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| diagnostics.error('--obj-output is now required when using --embed. This outputs an object file for linking directly into your application is more efficient than the old JS encoding') | |
| diagnostics.error('--obj-output is required when using --embed. This outputs an object file for linking directly into your application which is more efficient than the old JS encoding') |
The object file output is more efficient way of embedding and has been recommended via a warning since #16050 (early 2022).
With this simplification the file packager now has essentially two output modes: