]> granicus.if.org Git - gc/commitdiff
Code refactoring of MAKE_BACK_GRAPH definition in CMake script
authorIvan Maidanski <ivmai@mail.ru>
Thu, 22 Aug 2019 07:40:23 +0000 (10:40 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 22 Aug 2019 07:40:23 +0000 (10:40 +0300)
(refactoring of commit 32479d59c)

* CMakeLists.txt [enable_gc_debug] (MAKE_BACK_GRAPH, SRC): Remove
duplicate definition.

CMakeLists.txt

index eba628d889171f681209d3afddb9755fe878d89f..0030e43991467389894a3a5dd7c00d5a0190954c 100644 (file)
@@ -206,13 +206,11 @@ endif()
 
 if (enable_gc_debug)
   add_definitions("-DDBG_HDRS_ALL -DKEEP_BACK_PTRS")
-  if (HOST MATCHES ia64-.*-linux.*|i586-.*-linux.*|i686-.*-linux.*|x86-.*-linux.*|x86_64-.*-linux.*)
-    add_definitions("-DMAKE_BACK_GRAPH")
-    add_definitions("-DSAVE_CALL_COUNT=8")
-    set(SRC ${SRC} backgraph.c)
-  endif()
-  if (HOST MATCHES i.86-.*-dgux.*)
+  if (HOST MATCHES i.86-.*-dgux.*|ia64-.*-linux.*|i586-.*-linux.*|i686-.*-linux.*|x86-.*-linux.*|x86_64-.*-linux.*)
     add_definitions("-DMAKE_BACK_GRAPH")
+    if (HOST MATCHES .*-.*-.*linux.*)
+      add_definitions("-DSAVE_CALL_COUNT=8")
+    endif()
     set(SRC ${SRC} backgraph.c)
   endif()
 endif(enable_gc_debug)