Skip to content

Commit 481b89e

Browse files
committed
cmake: remove THIS_IS_NOT_A_DEBUG_BUILD hack
New PCH implementation doesn't use the hacky code that needed this workaround.
1 parent da533a1 commit 481b89e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cmake/DaemonFlags.cmake

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -695,8 +695,4 @@ endif()
695695

696696
# Configuration specific definitions
697697

698-
# This stupid trick to define THIS_IS_NOT_A_DEBUG_BUILD (rather than nothing) in the non-debug case
699-
# is so that it doesn't break the hacky gcc/clang PCH code which reads all the definitions
700-
# and prefixes "-D" to them.
701-
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS
702-
$<$<NOT:${DEBUG_GENEXP_COND}>:THIS_IS_NOT_A_>DEBUG_BUILD)
698+
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS $<${DEBUG_GENEXP_COND}:DEBUG_BUILD>)

0 commit comments

Comments
 (0)