[llvm] c75dbed - [CMake] Allow custom `CMAKE_BUILD_TYPE`s
Igor Zhukov via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 6 16:49:00 PST 2023
Author: Igor Zhukov
Date: 2023-03-07T07:48:38+07:00
New Revision: c75dbeda15c10424910ddc83a9ff7669776c19ac
URL: https://github.com/llvm/llvm-project/commit/c75dbeda15c10424910ddc83a9ff7669776c19ac
DIFF: https://github.com/llvm/llvm-project/commit/c75dbeda15c10424910ddc83a9ff7669776c19ac.diff
LOG: [CMake] Allow custom `CMAKE_BUILD_TYPE`s
Fixes #60975
Reviewed By: bogner
Differential Revision: https://reviews.llvm.org/D144835
Added:
Modified:
llvm/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index c993ff53d134..ba73ebaeaf4a 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -388,7 +388,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)$")
- message(FATAL_ERROR "Invalid value for CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
+ message(WARNING "Unknown value for CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
endif()
# LLVM_INSTALL_PACKAGE_DIR needs to be declared prior to adding the tools
More information about the llvm-commits
mailing list