sys-devel/llvm: Fix passing -DNDEBUG to build, #614844
authorMichał Górny <mgorny@gentoo.org>
Fri, 14 Apr 2017 22:34:11 +0000 (00:34 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 14 Apr 2017 22:38:53 +0000 (00:38 +0200)
sys-devel/llvm/llvm-4.0.0-r2.ebuild [moved from sys-devel/llvm/llvm-4.0.0-r1.ebuild with 98% similarity]
sys-devel/llvm/llvm-9999.ebuild

similarity index 98%
rename from sys-devel/llvm/llvm-4.0.0-r1.ebuild
rename to sys-devel/llvm/llvm-4.0.0-r2.ebuild
index db35674169dc639e21b6d6b50a024d54f859430e..4e23b863f255fe31e25cfd953b9bb0ef03f21323 100644 (file)
@@ -204,6 +204,8 @@ multilib_src_configure() {
                )
        fi
 
+       # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
+       use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
        cmake-utils_src_configure
 }
 
index 44153d7806ec219a6d391965180cc752791774bc..2d6aee8242349fc23bfdcf5bfa5ca3cc50f558d6 100644 (file)
@@ -203,6 +203,8 @@ multilib_src_configure() {
                )
        fi
 
+       # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
+       use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
        cmake-utils_src_configure
 }