-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
more missing includes #5930
more missing includes #5930
Conversation
I have some concerns. We might inadvertently "disable" the precompiling feature by adding more include header files. Since the precompiled header is handled by the CMake module and Orca only supports the CMake build system, I wonder what is the scenario that Orca is compiled without precompiled headers? |
Why do you fear disabling the precompiled header feature by adding the include statements properly? The way precompiled header support works is that a complete set of relevant header files gets precompiled in advance. The resulting precompiled header conglomerate gets fed into each individual translation unit before processing the translation unit itself. With that, all subsequent inclusions of header files already covered in the precompiled conglomerate get ignored. Therefore adding the needed header files to form well-formed and correct C/C++ files does not interfere with the feature.
I ran into this when using the makefile generator instead of the Ninja generator. I did so to more easily debug some issues when binding to some system libraries instead of those in the deps folder. The goal is to develop a system where I can choose for each individual dependency whether I prefer to take that from the system or from the deps folder. Once this effort provides some useful results I will for sure share those results. Independent of my special use case I firmly believe that keeping code health on a high level in that regard comes with high value, in particular for two reasons:
I hope this helps to explain the idea behind those fixes. For sure those fixes are not needed to build the code as it is with the build instructions provided in the repository. |
Here are more missing header files recently identified by building without precompiled header support.
You make a very good point. |
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.
LGTM
Thank you!
Here are more missing header files recently identified by building without precompiled header support.