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

Release flags are not picked to generate pch file #20

Open
dlaugt opened this issue Dec 11, 2018 · 0 comments
Open

Release flags are not picked to generate pch file #20

dlaugt opened this issue Dec 11, 2018 · 0 comments

Comments

@dlaugt
Copy link

dlaugt commented Dec 11, 2018

For gcc in release mode, -DNDEBUG flag is missing when pch is generated.

As the pch is not generated with the same flags, it is not used during the compilation of objects. For example, the following warning appears:
precompiled.h.gch/.c++: not used because `NO_INLINE' not defined [-Winvalid-pch]

Could we have the same flags for the pch generation and the compilation?

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

No branches or pull requests

1 participant