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 77include (${LLVM_COMMON_CMAKE_UTILS} /Modules/CMakePolicy.cmake
88 NO_POLICY_SCOPE)
99
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 ()
1016set_directory_properties (PROPERTIES
1117 # `llvm-project/llvm/CMakeLists.txt` adds the following directive
1218 # `include_directories( ${LLVM_INCLUDE_DIR} ${LLVM_MAIN_INCLUDE_DIR})` We
@@ -16,6 +22,9 @@ set_directory_properties(PROPERTIES
1622 # to set a few preprocessor defines which we do not want.
1723 COMPILE_DEFINITIONS ""
1824)
25+ if (CMAKE_BUILD_TYPE STREQUAL "Debug" )
26+ add_definitions ("-D_DEBUG" )
27+ endif ()
1928
2029# Default to C++17
2130set (CMAKE_CXX_STANDARD 17)
You can’t perform that action at this time.
0 commit comments