-
-
Notifications
You must be signed in to change notification settings - Fork 21.8k
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
SCons: Keep exceptions and rtti on Android, iOS and HTML5 tools build #29032
Conversation
Those were disable to keep size small, and on Android avoid the dependency on the STL, but for tools build (editor) this is not really a concern. Note: as of today it's not possible to build tools=yes for those platforms, but this change is one of the necessary steps to enable it. Fixes godotengine#25262.
Yeah, I was able to compile: up until this error occurred:
|
It actually compiles file for me with |
Could it be somehow that this memory issue is caused by me compiling it under WSL? Using 1.38.31 emsdk. This is not an issue for me for now though. |
Same for me on Arch Linux using emsdk from https://github.com/emscripten-core/emsdk (master): [user@user godot(x11)]$ scons platform=javascript tools=yes target=release_debug -j 8
scons: Reading SConscript files ...
WebM SIMD optimizations are disabled. Check if your CPU architecture, CPU bits or platform are supported!
Checking for C header file mntent.h... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
[ 97%] Linking Program ==> bin/godot.javascript.opt.tools.js
[100%] progress_finish(["progress_finish"], [])
[100%] emcc: warning: cannot represent a NaN literal '0x14eadb10' with custom bit pattern in NaN-canonicalizing JS engines (e.g. Firefox and Safari) without erasing bits!
in store float 0xFFFFFFFFE0000000, float* %119, align 4, !tbaa !32 in _ZN22RasterizerStorageGLES318multimesh_allocateE3RIDiN12VisualServer24MultimeshTransformFormatENS1_20MultimeshColorFormatENS1_25MultimeshCustomDataFormatE()
emcc: warning: cannot represent a NaN literal '0x14eadb10' with custom bit pattern in NaN-canonicalizing JS engines (e.g. Firefox and Safari) without erasing bits!
in store float 0xFFFFFFFFE0000000, float* %284, align 4, !tbaa !35 in _ZN22RasterizerStorageGLES218multimesh_allocateE3RIDiN12VisualServer24MultimeshTransformFormatENS1_20MultimeshColorFormatENS1_25MultimeshCustomDataFormatE()
shared:ERROR: Memory is not large enough for static data (12497216) plus the stack (5242880), please increase TOTAL_MEMORY (16777216) to at least 17741120
scons: *** [bin/godot.javascript.opt.tools.js] Error 1
scons: building terminated because of errors.
[user@user godot(x11)]$ |
Is it possible to increase the TOTAL_MEMORY with scons? |
Should I open a new issue for tools=yes? Only doesn't happen on every computer but it seems to be OS independent. |
Cherry-picked for 3.1.2. |
Those were disable to keep size small, and on Android avoid the dependency on the STL,
but for tools build (editor) this is not really a concern.
Note: as of today it's not possible to build tools=yes for those platforms, but this
change is one of the necessary steps to enable it.
Fixes #25262.