commit: f119161cba79476efb6547a1955cf1dd0ea51aac
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 12 10:53:40 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jan 12 15:25:29 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f119161c
sys-libs/compiler-rt: Switch to CMAKE_BUILD_TYPE=RelWithDebInfo
sys-libs/compiler-rt/compiler-rt-9999.ebuild | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sys-libs/compiler-rt/compiler-rt-9999.ebuild
b/sys-libs/compiler-rt/compiler-rt-9999.ebuild
index 356ff8e..8f44cb9 100644
--- a/sys-libs/compiler-rt/compiler-rt-9999.ebuild
+++ b/sys-libs/compiler-rt/compiler-rt-9999.ebuild
@@ -5,6 +5,8 @@
EAPI=6
: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
+# (needed due to CMAKE_BUILD_TYPE != Gentoo)
+CMAKE_MIN_VERSION=3.7.0-r1
PYTHON_COMPAT=( python2_7 )
# TODO: fix unnecessary dep on Python upstream
@@ -28,6 +30,9 @@ DEPEND="${RDEPEND}
test? ( ~sys-devel/clang-${PV} )
${PYTHON_DEPS}"
+# least intrusive of all
+CMAKE_BUILD_TYPE=RelWithDebInfo
+
test_compiler() {
$(tc-getCC) ${CFLAGS} ${LDFLAGS} "${@}" -o /dev/null -x c - \
<<<'int main() { return 0; }' &>/dev/null