|
1 | 1 | # See docs/CMake.html for instructions about how to build LLVM with CMake.
|
2 | 2 | cmake_minimum_required(VERSION 3.17.2) # HLSL Change - Require CMake 3.17.2.
|
3 | 3 |
|
4 |
| -message(CMAKE_BUILD_TYPE0!!!!!="${CMAKE_BUILD_TYPE}") |
5 |
| -message(CMAKE_CONFIGURATION_TYPES!!!!!="${CMAKE_CONFIGURATION_TYPES}") |
6 |
| -message(CMAKE_CXX_FLAGS_RELEASE!!!!!="${CMAKE_CXX_FLAGS_RELEASE}") |
7 | 4 | set(CMAKE_CXX_STANDARD 17)
|
8 | 5 | set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
9 | 6 |
|
10 | 7 | if (NOT "${DXC_CMAKE_BEGINS_INCLUDE}" STREQUAL "")
|
11 | 8 | include(${DXC_CMAKE_BEGINS_INCLUDE})
|
12 | 9 | endif()
|
13 | 10 |
|
14 |
| - |
15 | 11 | if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
16 | 12 | message(STATUS "No build type selected, default to Debug")
|
17 | 13 | set(CMAKE_BUILD_TYPE "Debug")
|
18 | 14 | endif()
|
19 |
| -message(CMAKE_BUILD_TYPE1!!!!!="${CMAKE_BUILD_TYPE}") |
20 | 15 |
|
21 | 16 | if(POLICY CMP0022)
|
22 | 17 | cmake_policy(SET CMP0022 NEW) # automatic when 2.8.12 is required
|
@@ -320,15 +315,11 @@ option(LLVM_ENABLE_LIBCXXABI "Use libc++abi when using libc++." OFF)
|
320 | 315 | option(LLVM_ENABLE_PEDANTIC "Compile with pedantic enabled." ON)
|
321 | 316 | option(LLVM_ENABLE_WERROR "Fail and stop if a warning is triggered." OFF)
|
322 | 317 |
|
323 |
| -message(uppercase_CMAKE_BUILD_TYPE!!!!!="${CMAKE_BUILD_TYPE}") |
324 | 318 | if( NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG" )
|
325 |
| - message(assertions OFF) |
326 | 319 | option(LLVM_ENABLE_ASSERTIONS "Enable assertions" OFF)
|
327 | 320 | else()
|
328 |
| - message(assertions ON) |
329 | 321 | option(LLVM_ENABLE_ASSERTIONS "Enable assertions" ON)
|
330 | 322 | endif()
|
331 |
| -message(LLVM_ENABLE_ASSERTIONS!!!!!="${LLVM_ENABLE_ASSERTIONS}") |
332 | 323 |
|
333 | 324 | set(LLVM_ABI_BREAKING_CHECKS "WITH_ASSERTS" CACHE STRING
|
334 | 325 | "Enable abi-breaking checks. Can be WITH_ASSERTS, FORCE_ON or FORCE_OFF.")
|
|
0 commit comments