Gentoo Archives: gentoo-dev

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] [PATCH 4/4] cmake.eclass: Default CMAKE_BUILD_TYPE=RelWithDebInfo in EAPI 8
Date: Thu, 19 Aug 2021 17:45:30
Message-Id: 9208978.eNJFYEL58v@tuxbrain
In Reply to: [gentoo-dev] [PATCH 1/4] cmake.eclass: Support EAPI-8 by Andreas Sturmlechner
1 Signed-off-by: Michał Górny <mgorny@g.o>
2 Signed-off-by: Andreas Sturmlechner <asturm@g.o>
3 ---
4 eclass/cmake.eclass | 11 ++++++++---
5 1 file changed, 8 insertions(+), 3 deletions(-)
6
7 diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass
8 index 8befd9e5a9f..3021a3a2b1e 100644
9 --- a/eclass/cmake.eclass
10 +++ b/eclass/cmake.eclass
11 @@ -42,14 +42,19 @@ _CMAKE_ECLASS=1
12 # Eclass can use different cmake binary than the one provided in by system.
13 : ${CMAKE_BINARY:=cmake}
14
15 +[[ ${EAPI} == 7 ]] && : ${CMAKE_BUILD_TYPE:=Gentoo}
16 # @ECLASS-VARIABLE: CMAKE_BUILD_TYPE
17 # @DESCRIPTION:
18 # Set to override default CMAKE_BUILD_TYPE. Only useful for packages
19 # known to make use of "if (CMAKE_BUILD_TYPE MATCHES xxx)".
20 # If about to be set - needs to be set before invoking cmake_src_configure.
21 -# You usually do *NOT* want nor need to set it as it pulls CMake default
22 -# build-type specific compiler flags overriding make.conf.
23 -: ${CMAKE_BUILD_TYPE:=Gentoo}
24 +#
25 +# The default is RelWithDebInfo as that is least likely to append undesirable
26 +# flags. However, you may still need to sed CMake files or choose a different
27 +# build type to achieve desirable results.
28 +#
29 +# In EAPI 7, the default was non-standard build type of Gentoo.
30 +: ${CMAKE_BUILD_TYPE:=RelWithDebInfo}
31
32 # @ECLASS-VARIABLE: CMAKE_IN_SOURCE_BUILD
33 # @DEFAULT_UNSET
34 --
35 2.33.0

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies