darklost / android-cmake

Automatically exported from code.google.com/p/android-cmake
0 stars 0 forks source link

Debug build type does not pass debug flag to GCC #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Giving -DCMAKE_BUILD_TYPE=Debug, when configuring on the console, creates a 
debug configuration. This would cause, when building, to pass to the compiler 
the options in CMAKE_CXX_FLAGS_DEBUG and CMAKE_C_FLAGS_DEBUG for C++ and C 
respectively. Neither of these contain flags to produce debug symbols. 
Shouldn't they contain "-g"?
Also on a side note in Debug, a flag for size optimization is pass, shouldn't 
it be "-O0" for no optimization?

Original issue reported on code.google.com by bpetkant...@gmail.com on 4 Sep 2012 at 1:22