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

Move all system headers to PCH #4022

Merged

Conversation

ranisalt
Copy link
Member

Pull Request Prelude

Changes Proposed

Further improves #4019 by adding all system headers to the precompiled header. According to this and several other sources, every included header that is not expected to change often - that is, usually all system headers - are good candidates.

There is a notable improvement from ~2:40 to less than 2 minutes build in my machine.

@ranisalt ranisalt requested review from EPuncker and DSpeichert and removed request for EPuncker March 18, 2022 20:51
@ranisalt
Copy link
Member Author

@DSpeichert was faster than me, sorry for the second PR :P

@DSpeichert DSpeichert merged commit f80456e into otland:master Mar 18, 2022
#include <vector>

#if __has_include("luajit/lua.hpp")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't we drop this __has_include thing for some reason?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't remember exactly, but it could have something to do with the CMAKE's -DUSE_LUAJIT not working right.

@ranisalt ranisalt deleted the cleanup-includes-2-electric-boogaloo branch March 19, 2022 13:50
@Zbizu Zbizu mentioned this pull request Apr 4, 2022
3 tasks
EPuncker pushed a commit to EPuncker/forgottenserver that referenced this pull request May 23, 2023
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

Successfully merging this pull request may close these issues.

None yet

3 participants