File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 7
7
include (${LLVM_COMMON_CMAKE_UTILS} /Modules/CMakePolicy.cmake
8
8
NO_POLICY_SCOPE )
9
9
10
+ if (LIBC_CMAKE_VERBOSE_LOGGING )
11
+ get_directory_property (LIBC_OLD_PREPROCESSOR_DEFS COMPILE_DEFINITIONS )
12
+ foreach (OLD_DEF ${LIBC_OLD_PREPROCESSOR_DEFS} )
13
+ message (STATUS "Undefining ${OLD_DEF} " )
14
+ endforeach ()
15
+ endif ()
10
16
set_directory_properties (PROPERTIES
11
17
# `llvm-project/llvm/CMakeLists.txt` adds the following directive
12
18
# `include_directories( ${LLVM_INCLUDE_DIR} ${LLVM_MAIN_INCLUDE_DIR})` We
@@ -16,6 +22,9 @@ set_directory_properties(PROPERTIES
16
22
# to set a few preprocessor defines which we do not want.
17
23
COMPILE_DEFINITIONS ""
18
24
)
25
+ if (CMAKE_BUILD_TYPE STREQUAL "Debug" )
26
+ add_definitions ("-D_DEBUG" )
27
+ endif ()
19
28
20
29
# Default to C++17
21
30
set (CMAKE_CXX_STANDARD 17 )
You can’t perform that action at this time.
0 commit comments