-
-
Notifications
You must be signed in to change notification settings - Fork 243
Allow unity builds on a subset of the sources. #1266
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
Conversation
|
Shouldn't all those CPP files, like That is the convention throughout the engine code, and it's more readable too, so if there is no specific reason to be adding the namespace to each function etc, then please use |
|
Anyway, if it is a convention, I can switch to the |
I never actually noticed that, but the anonymous namespace is used within the
Fair point!
|
a8b2611 to
ac3104f
Compare
|
well, you merge early feture (not complete yet) to your branch, due to this PR is minor improvements, could you recreate another PR based on |
In order to allow unity builds we need to avoiding "using namespace" at file scope, #undef our file-specific #defines, and avoid having static functions with identical name and signature.
|
Ah! It explains all these commits suddenly popping in the PR :) Thanks for pointing that out. I made the changes discussed about |
|
lgtm |
Hello, this PR contains many small changes to allow unity builds (a.k.a jumbo builds) on a subset of the sources:
USING_NAMESPACE_AX),#define LOG_TAG …in audio-related files),readBEUint16in both etc1.cpp and etc2.cpp).For context, for my project I compile a subset of axmol of 180 files. Using the default build it takes 3m50s on my laptop (13m30s user time), but if I use unity builds it's only 1m50s (5m10s user time).