[PATCH] D144835: [CMake] Allow custom `CMAKE_BUILD_TYPE`s

Igor Zhukov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 6 16:49:01 PST 2023


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc75dbeda15c1: [CMake] Allow custom `CMAKE_BUILD_TYPE`s (authored by fsb4000).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D144835/new/

https://reviews.llvm.org/D144835

Files:
  llvm/CMakeLists.txt


Index: llvm/CMakeLists.txt
===================================================================
--- llvm/CMakeLists.txt
+++ llvm/CMakeLists.txt
@@ -388,7 +388,7 @@
 
 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144835.502863.patch
Type: text/x-patch
Size: 528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230307/8170d1eb/attachment.bin>


More information about the llvm-commits mailing list