Skip to content
Snippets Groups Projects
Commit 10d96caf authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[cmake] Remove STL debug options.

Remove _GLIBCXX_DEBUG from STL_NO_DEBUG.
Defining the macro causes errors when linking against
other code compiled without the macro.

From https://gcc.gnu.org/onlinedocs/libstdc++/manual/debug_mode_using.html
  To use the libstdc++ debug mode, compile your application with the compiler
  flag -D_GLIBCXX_DEBUG. Note that this flag changes the sizes and behavior
  of standard class templates such as std::vector, and therefore you can only
  link code compiled with debug mode and code compiled without debug mode if
  no instantiation of a container is passed between the two translation units.

The remaining definitions are no longer listed in
https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_macros.html
and are removed too.
If needed those can be set with usual compiler flags,
for set of current gcc's STL options.
parent ee5648cf
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment