-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Build minimum size ChakraCore for embedding? #4278
Comments
41.7? Is that the .a file ? It gets smaller after linker. You may also do ‘strip -x’ to ditch debug symbols. ++ |
reply @obastemur
in embedding project, |
@tommyZZM makes sense. That’s not stripped nor optimized for size. |
BTW; we include ICU + stdlibc++ embedded into ++ |
If Unicode support is not required running the build script with the --no-icu option shrinks it a lot (around 16mb). |
You can also build without JIT if you want the bare minimum. Trade-off here is obviously performance. @obastemur @curtisman what's the flag for that again? |
I don't think the build flags are exposed nicely through build.sh but the flag needed is CHAKRACORE_LITE - you can define it in CommonDefines.h or also perhaps also in CFLAGS/CXXFLAGS. I haven't tested the latter though. See #3553 for details |
We need to merge #4285 first |
// cc @curtisman Lite mode seems very useful that we should document it perhaps in Building ChakraCore. I did |
#define is not enough, because it also disable JIT and ScriptDebug in the project files. On windows build, pass /p:BuildLite=true to msbuild to build Lite mode. Latest master x64 binary size: We need to do a little work for Linux build to enable Lite mode. |
default ChakraCore size uses over 41.7mb size, can i make it smaller?
The text was updated successfully, but these errors were encountered: