-
Bug
-
Resolution: Fixed
-
P3
-
11
-
None
-
b04
On solstudio, we have used -g for generating debug information when compiling C files, but -g0 when compiling C++ programs.
This is due to the fact that -g, when compiling C++ programs, will prohibit inlining. We do not want that, since we build with debug symbols even in release builds, to get a proper debuginfo file per library. So, we must use -g0. And thus we must have different flags for generating debug symbols for C and C++...
... except that the C compiler also accepts -g0, which is an alias for -g. So we can use -g0 everywhere, and have things working like right now, but get the benefit of not having to separate C and C++ flags.
This is due to the fact that -g, when compiling C++ programs, will prohibit inlining. We do not want that, since we build with debug symbols even in release builds, to get a proper debuginfo file per library. So, we must use -g0. And thus we must have different flags for generating debug symbols for C and C++...
... except that the C compiler also accepts -g0, which is an alias for -g. So we can use -g0 everywhere, and have things working like right now, but get the benefit of not having to separate C and C++ flags.