<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/60975>60975</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Don't restrict list of CMake build types
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          rossburton
      </td>
    </tr>
</table>

<pre>
    For example, the llvm directory restricts the value of `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}")
endif()
```

https://github.com/llvm/llvm-project/blob/main/llvm/CMakeLists.txt#L389

That is the default set of build types, but it is not the exhaustive list of build types.  Quoting from the [CMake manual](https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html):

>Typical values include Debug, Release, RelWithDebInfo and MinSizeRel, but custom build types can also be defined.

I suggest just deleting this chunk, as it doesn't serve any purpose: the person building llvm should be able to specify a custom build type if they wish.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVE1z6jYU_TXy5k4ZRza2WXgB2O5jCklLePOm3WRk-xrrRZY8-iChv74jQ1JKVp1hhOB-6NxzjsSM4UeJmJP5isyLgDnbK51rZUzttFUyqFV7ziulAd_ZMAokdA22RxDiNEDLNTZW6TNoNFbzxpopeGLCIagOSBKud8vfypfV9822eDn8-XtJkpBESxIWJPxYk_D6mX7yDgjN7stg-Vhc4vD4dAA3jqgbZvDlS-JueVh_K5-BUErmJaFZUa6-_0rS9b7clsvn8rL7sTl8K8rV5rF6Iul6t3l83vxV7sstoQtCY19LF9fzYEBj2BEJzarlYbl9Kff7p73vv5EnJnh7nbdTGr5MGy3B90tXXyJpcXsKypZ3hGaff9yxcll7a0fj6aMVodWR297Vs0YNhFZekOvXL6NWP7GxhFa1UDWh1cC4_DdnvWOvuOXGmpl9t4RG2yhb3B5z6JkFftGyxY45YcGg9YrWjosW7HlE461QOwt8ypXKTvn43jNnLD8hCG7ua2YAfzhluTxCp9UwVZD5akIEA5OOCTIvCM3-O2kzsFecKX382BNa9ShGPxOzaPyoJ6Y5q71Dq3uuZ70dhGf2znhReTiPvGHioqABLhvhWoQCa3f08-1RIDN43f7gti-w3shOAZMt7Lh85n_jHsUHF40zVg23E0PDJDBhFNQTmVxiO7tFsQHjjkc0Fn46Y6FFgRM_tucGmt7JV9-cGc9zq9BIQlMvhz4hMHmG0elRGfRO82yOqI2SFwS-zXRRTa-caD0CzxBYBWbEhndnYF8hA-98pzO8cdPPgjaP2kW0YAHmD0ma0jibR0nQ52HKOuySJmF1GMZYt5jUrKY0pGmSpWkU8JyGNAopjR9iSh-SWZ0ukizEhsVxPM_mlMQhDoyLmcfo1Q24MQ7zJFyk80CwGoWZXiZKJb7BFJxudRHofDJ67Y6GxKGYvPzZxXIrMC_UhamPp-nTjhez3UgUOC3y_321JjiG0GqC-08AAAD__1ghqxg">