[PATCH] D26579: [cmake] Allow CMAKE_BUILD_TYPE=Gentoo
Michał Górny via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 12 06:05:22 PST 2016
mgorny created this revision.
mgorny added reviewers: beanz, rnk.
mgorny added a subscriber: llvm-commits.
Allow the custom build type of 'Gentoo' that is used for Gentoo builds
of all CMake-based packages. The main goal of this build type is to
work-around some CMake defaults such as compiler flags.
https://reviews.llvm.org/D26579
Files:
CMakeLists.txt
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -263,7 +263,7 @@
string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE)
if (CMAKE_BUILD_TYPE AND
- NOT uppercase_CMAKE_BUILD_TYPE MATCHES "^(DEBUG|RELEASE|RELWITHDEBINFO|MINSIZEREL)$")
+ NOT uppercase_CMAKE_BUILD_TYPE MATCHES "^(DEBUG|RELEASE|RELWITHDEBINFO|MINSIZEREL|GENTOO)$")
message(FATAL_ERROR "Invalid value for CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26579.77719.patch
Type: text/x-patch
Size: 524 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161112/08ae1c58/attachment.bin>
More information about the llvm-commits
mailing list