summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-12-01 09:02:08 +0100
committerMichał Górny <mgorny@gentoo.org>2016-12-01 23:39:35 +0100
commit81e9f9f0a3ab9112c06c15a0796ba56751403bc6 (patch)
tree80249269436cea4f5e34a1f89e913bb49b2f17f7 /eclass
parentcmake-utils.eclass: Set assembler correctly, #601292 (diff)
downloadgentoo-81e9f9f0a3ab9112c06c15a0796ba56751403bc6.tar.gz
gentoo-81e9f9f0a3ab9112c06c15a0796ba56751403bc6.tar.bz2
gentoo-81e9f9f0a3ab9112c06c15a0796ba56751403bc6.zip
cmake-utils.eclass: Unset BUILD_TYPE-specific ASM flags
Diffstat (limited to 'eclass')
-rw-r--r--eclass/cmake-utils.eclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index 784ae44b6812..c3de62265244 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -604,6 +604,7 @@ enable_cmake-utils_src_configure() {
# Wipe the default optimization flags out of CMake
if [[ ${CMAKE_BUILD_TYPE} != Gentoo ]] && ! has "${EAPI}" 2 3 4 5; then
cat >> ${common_config} <<- _EOF_ || die
+ SET (CMAKE_ASM_FLAGS_${CMAKE_BUILD_TYPE^^} "" CACHE STRING "")
SET (CMAKE_C_FLAGS_${CMAKE_BUILD_TYPE^^} "" CACHE STRING "")
SET (CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE^^} "" CACHE STRING "")
SET (CMAKE_Fortran_FLAGS_${CMAKE_BUILD_TYPE^^} "" CACHE STRING "")