Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Apr 15, 2015 · 0 comments
Open

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

GoogleCodeExporter opened this issue Apr 15, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant