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

build-style/cmake: set CMAKE_BUILD_TYPE to None #29459

Merged
merged 62 commits into from Apr 3, 2021

Conversation

sgn
Copy link
Member

@sgn sgn commented Mar 14, 2021

  • I'm going to build all packages with build_style=cmake and fix them one by one before merging this in.

[ci skip]

@sgn sgn force-pushed the cmake-build-type-to-None branch 3 times, most recently from a3a2d1f to 8f29b89 Compare March 21, 2021 09:45
@sgn sgn requested review from Johnnynator and Piraty March 21, 2021 09:46
@sgn sgn changed the title [WIP] build-style/cmake: set CMAKE_BUILD_TYPE to None build-style/cmake: set CMAKE_BUILD_TYPE to None Mar 21, 2021
@sgn
Copy link
Member Author

sgn commented Mar 21, 2021

Below changes will be submited separately:

@@ -4,6 +4,7 @@ version=2.17.7
revision=2
archs="x86_64"
build_style=cmake
configure_args="-DTBB_ROOT=/usr -DEMBREE_IGNORE_CMAKE_CXX_FLAGS=OFF"
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

I think it derived from archlinux package.

It should be defined this way now '-DEMBREE_MAX_ISA="AVX512SKX"'

@sgn sgn requested a review from pullmoll March 21, 2021 09:51
@thypon
Copy link
Member

thypon commented Mar 21, 2021

What's the reason for switching from release to none?

@sgn
Copy link
Member Author

sgn commented Mar 21, 2021

What's the reason for switching from release to none?

Release force -O3

@@ -3,6 +3,8 @@ pkgname=eigen
version=3.3.9
revision=1
build_style=cmake
# This is header only library, don't waste time to patch
Copy link
Member

Choose a reason for hiding this comment

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

this might make a good commit message, but not an in-source comment

@sgn sgn force-pushed the cmake-build-type-to-None branch 2 times, most recently from a17e78e to a6de9ca Compare March 26, 2021 02:10
@sgn
Copy link
Member Author

sgn commented Mar 26, 2021

Question: Should we add -DNDEBUG to CFLAGS and CXXFLAGS?

@ericonr
Copy link
Member

ericonr commented Mar 26, 2021

I would rather not.

@ericonr
Copy link
Member

ericonr commented Mar 26, 2021

Hmmm, unless CMake release mode adds it... Then I guess yes... This complicated.

@sgn
Copy link
Member Author

sgn commented Mar 26, 2021

Hmmm, unless CMake release mode adds it... Then I guess yes... This complicated.

Yes, -DNDEBUG added in Release MinSizeRel and RelWithDebInfo.

@sgn sgn force-pushed the cmake-build-type-to-None branch 2 times, most recently from b03e1da to 77a508f Compare March 27, 2021 08:23
@sgn
Copy link
Member Author

sgn commented Mar 27, 2021

rspamd vendored too much dependencies. I gave up on it.

@sgn sgn force-pushed the cmake-build-type-to-None branch from b79bc64 to 104d046 Compare March 27, 2021 12:30
@sgn
Copy link
Member Author

sgn commented Mar 27, 2021

Most patching are done.
Package that adds -O2 and -g are ignored.

  • rspamd, yabause-gtk, yoshimi, zbackup, zig, zulucrypt adds -O3 but wasn't patched.

Would appreciate review from team.

@sgn sgn force-pushed the cmake-build-type-to-None branch from d95105d to b7f3310 Compare March 28, 2021 03:53
@sgn
Copy link
Member Author

sgn commented Mar 28, 2021

@void-linux/pkg-committers please have a look. I expect to push this out next weekend if no major change required.

@sgn sgn force-pushed the cmake-build-type-to-None branch 2 times, most recently from 08e63d5 to 4dff671 Compare March 29, 2021 15:30
@sgn sgn mentioned this pull request Apr 1, 2021
@sgn sgn force-pushed the cmake-build-type-to-None branch from 4dff671 to 3ee4c25 Compare April 3, 2021 03:00
@sgn sgn force-pushed the cmake-build-type-to-None branch from 3ee4c25 to 2376856 Compare April 3, 2021 03:13
@sgn sgn merged commit 2376856 into void-linux:master Apr 3, 2021
@sgn sgn deleted the cmake-build-type-to-None branch April 9, 2021 00:17
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants