closure and debug information

77 views
Skip to first unread message

lxp...@gmail.com

unread,
Feb 27, 2021, 7:44:28 AM2/27/21
to emscripten-discuss
Hi,

I am trying to enable --closure 1 but it remains being disabled with the following message

em++: warning: disabling closure because debug info was requested [-Wemcc]

I cannot figure where the debug info is requested. Other flags passed include -O3 -g0 and -DNDEBUG

Any ideas? Thanks
Laurent

(em++ version is 2.0.14)

/Users/laurent/tools/emsdk/upstream/emscripten/em++ -v libverovio.a -O3 -g0 --closure 1 -DNDEBUG --memory-init-file 0 -std=c++17 -s ASM_JS=1 -s INITIAL_MEMORY=256MB -s TOTAL_STACK=128MB -s WASM=0 --embed-file data/ -s EXPORTED_FUNCTIONS="['_vrvToolkit_constructor','_vrvToolkit_destructor','_vrvToolkit_edit','_vrvToolkit_editInfo','_vrvToolkit_getAvailableOptions','_vrvToolkit_getElementAttr','_vrvToolkit_getElementsAtTime','_vrvToolkit_getExpansionIdsForElement','_vrvToolkit_getHumdrum','_vrvToolkit_getLog','_vrvToolkit_getMEI','_vrvToolkit_getMIDIValuesForElement','_vrvToolkit_getNotatedIdForElement','_vrvToolkit_getOptions','_vrvToolkit_getPageCount','_vrvToolkit_getPageWithElement','_vrvToolkit_getTimeForElement','_vrvToolkit_getTimesForElement','_vrvToolkit_getVersion','_vrvToolkit_loadData','_vrvToolkit_loadZipDataBase64','_vrvToolkit_loadZipDataBuffer','_vrvToolkit_redoLayout','_vrvToolkit_redoPagePitchPosLayout','_vrvToolkit_renderData','_vrvToolkit_renderToMIDI','_vrvToolkit_renderToSVG','_vrvToolkit_renderToTimemap','_vrvToolkit_setOptions','_malloc','_free']" -s EXTRA_EXPORTED_RUNTIME_METHODS='["cwrap"]' -o build/verovio.js

Alon Zakai

unread,
Feb 27, 2021, 1:27:33 PM2/27/21
to emscripte...@googlegroups.com
That's very strange. Probably an unknown bug in argument parsing. Perhaps try removing arguments one after the other, to find which is responsible?

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/291d1c92-89f1-49ab-8dcd-9bf6a4019e0en%40googlegroups.com.

lxp...@gmail.com

unread,
Feb 28, 2021, 4:36:41 AM2/28/21
to emscripten-discuss
I found it A `-g` was added somewhere else in the cmake configuration. Thanks for the answer - and sorry for irrelevant question.

Laurent
Reply all
Reply to author
Forward
0 new messages