-
Notifications
You must be signed in to change notification settings - Fork 15.6k
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
Check HAVE_CONFIG_H before including "config.h" #497
Conversation
@xfxyjwf for review |
Where is this HAVE_CONFIG_H macro defined? |
It's defined by automake/autoconf I believe. For builds other that the automake, we need to Checked the places where config.h is introduced:
|
For the config.h, we can:
I am confused by what you are trying to do in this PR. It seems you are trying to go with option 3). But if the code is required to compile without config.h anyway, why don't we just get rid of the config.h file? (i.e., 2 is strictly better than 3 in my opinion). |
SGTM. The only downside for option 2 is that if in the future we add need more macros from autoconf, passing -DXXX may make the output harder to read. |
Just to capture the discussion we had yesterday.
The config.h will still be generated, because
|
Removed the includes and fixed cmake as well, PTAL. |
@@ -1,20 +1,29 @@ | |||
## Process this file with automake to produce Makefile.in | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this extra new-line?
LGTM You might want to squash the commits into one. |
We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm. |
Now the Build tool needs to define -DHAVE_ZLIB and -DHAVE-PTHREAD rather than providing a config.h - Make pbconfig.h a manually written file to handle hash conditions according to platform related macros. - Remove #include "config.h" from source code. - Changed the configure.ac and Makefile.am to pass down the macros. - Change cmake to pass down the the macros. Change-Id: I537249d5df8fdeba189706aec436d1ab1104a4dc
CLAs look good, thanks! |
Check HAVE_CONFIG_H before including "config.h"
This flag was necessary inside Google for the transition to having proto3 preserve unknown fields by default. Outside of Google, this is unnecessary since the dev branch is the transition.
set resolvedResponseType on resolve(), fixes protocolbuffers#497
Fixed data loss bug in the core
The first step of introducing "config.h"-less BUILD.