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