-
Notifications
You must be signed in to change notification settings - Fork 258
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
Using precompiled header causes compilation error of tagged files #14
Comments
Here is my patch which workarounds the issue by disabling usage of PCH for all files that have tags:
|
Thanks for the patch. I added a test case and uploaded for review:https://android-review.googlesource.com/207977 |
@DanAlbert, thank you for accepting the patch. I would only like to note that this patch works by disabling PCH for tagged files (i.e. files tagged with arm or neon will not use PCH). While this works fine for our use case when such files are minority, the real fix would actually be to create a separate PCH for each tag combination in use (I believe this is what Xcode does when compiling iOS projects). |
Yeah, I had considered that. There are bigger problems to chase right now, so I figure something is better than nothing :) One thing that can be done to avoid this is to use a separate (intermediate) static library for the sources that would normally be tagged. This way you can set |
Thanks @DanAlbert, that is a good idea. |
Problem is that precompiled header is built only for non-tagged source files and all files attempt to use it. So when a specific file is tagged with
arm
orneon
tag, then this file cannot use PCH and compile warning is issued. When all warnings are treated as errors, this causes compilation failure.This problem was also present in r10e.
The text was updated successfully, but these errors were encountered: