-
Notifications
You must be signed in to change notification settings - Fork 806
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
Add support cmake unity build #5109
Conversation
133f0e0
to
40c607a
Compare
I logged in with this version, synced a view files. It seems fine by me. None of my changes should currently have an impact at runtime, because the Appimage is probably not yet built with |
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.
thanks a lot that is nice
would you like to also try activating it for the AppImage ?
I can help and guide you if you want
src/gui/folder.cpp
Outdated
#ifndef VERSION_C | ||
#define VERSION_C | ||
static const char versionC[] = "version"; | ||
|
||
#endif |
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.
please can you replace them by the following code
namespace {
constexpr auto versionC= "version";
}
can you also apply the same solution to the few other occurrences
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.
please ignore that comment
it is indeed not compiling
so please use
namespace {
#ifndef VERSION_C
#define VERSION_C
constexpr auto versionC= "version";
#endif
}
I am also getting a build failure if the To solve the build failures I added the following lines
|
You would need to add the extra configure option in this file https://github.com/nextcloud/desktop/blob/master/admin/linux/build-appimage.sh |
44b2139
to
eb5ed39
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5109 +/- ##
==========================================
+ Coverage 57.56% 57.58% +0.01%
==========================================
Files 138 138
Lines 17399 17399
==========================================
+ Hits 10016 10019 +3
+ Misses 7383 7380 -3
|
eb5ed39
to
f496c97
Compare
Signed-off-by: tnixeu <4436784+tnixeu@users.noreply.github.com>
Signed-off-by: tnixeu <4436784+tnixeu@users.noreply.github.com>
Signed-off-by: tnixeu <4436784+tnixeu@users.noreply.github.com>
Signed-off-by: tnixeu <4436784+tnixeu@users.noreply.github.com>
Signed-off-by: tnixeu <4436784+tnixeu@users.noreply.github.com>
f496c97
to
5eadb26
Compare
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.
thanks
AppImage file: nextcloud-PR-5109-5eadb269a614567ce5f7b5ac0e2b97387ec9c25b-x86_64.AppImage |
This PR prepares building with
CMAKE_UNITY_BUILD
enabled. This makes builds often a bit faster and the executables often a bit smaller.I tried to keep the changes as small as possible and without renaming variables. This is why I exclude the file causing troubles from the unity build or added macros in order to avoid defining a variable multiple times.
I timed the builds with
time ninja
Unity build: nextcloud 5.6M
Normal build: nextcloud 5.8M