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

Windows: Use a shared precompiled header for dolphin code under Source/ #797

Merged
merged 3 commits into from Aug 16, 2014
Merged

Conversation

shuffle2
Copy link
Contributor

This PR makes Windows builds on msbuild use pch.h for all code under the Source directory.
wxWidgets already was using it's own PCH, and continues to.
Other external code being built wasn't using PCH, and still doesn't.
Cuts build time by 20-50%.
Open questions:

  • Why does the old syntax for build dependencies need to be used in the sln? ProjectReference in msbuild should be all that's needed.
  • Are there more headers to add to pch.h?

@JMC47
Copy link
Contributor

JMC47 commented Aug 14, 2014

Xaudio2 and Xinput still work, as @shuffle2 requested I test.

@lioncash
Copy link
Member

LGTM

@shuffle2
Copy link
Contributor Author

Zc:inline is documented here http://msdn.microsoft.com/en-us/library/dn642448.aspx and seems to slice off a few seconds. Not much for us as we don't spend much time linking to begin with.

@Parlane
Copy link
Member

Parlane commented Aug 15, 2014

LGTM

@Parlane
Copy link
Member

Parlane commented Aug 16, 2014

@dolphin-emu-bot rebuild

shuffle2 added a commit that referenced this pull request Aug 16, 2014
Windows: Use a shared precompiled header for dolphin code under Source/
@shuffle2 shuffle2 merged commit 2270c3e into dolphin-emu:master Aug 16, 2014
@shuffle2 shuffle2 deleted the msvc-pch branch August 16, 2014 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants