sys-libs/compiler-rt: Switch to CMAKE_BUILD_TYPE=RelWithDebInfo
authorMichał Górny <mgorny@gentoo.org>
Thu, 12 Jan 2017 10:53:40 +0000 (11:53 +0100)
committerMichał Górny <mgorny@gentoo.org>
Thu, 12 Jan 2017 15:25:29 +0000 (16:25 +0100)
sys-libs/compiler-rt/compiler-rt-9999.ebuild

index 356ff8eea0fba9ff2a924938193bf0b1d8976ba8..8f44cb9eb1c59591475967cbfa65829af17f1629 100644 (file)
@@ -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