Closed niv closed 8 years ago
Does any plugin compile with -O2 right now?
Theoretically speaking, all of them should, except those still using old-style inline assembly (like events, profiler, etc). I have tested a few on my server and things seemed fine, but I wanted to queue them up formally in PRs to have it all documented.
The core, nwnx2lib.cpp, needs a rewrite. I have that queued up as well but it's not finished yet.
Thanks!
This commit makes -O2 the default on release and relwithdebinfo builds, then forces -O0 on nwnx2 and all in-tree plugin cmakelists.
My proposed way forward is:
This also adds -DNDEBUG which was missing from the last patch, and adds some awesome gdb-related debug flags to DEBUG builds so you get full symbols in gdb.
please discuss!