[cmake]
authorChristoph von Wittich <christoph_vw@reactos.org>
Thu, 1 Mar 2012 18:38:22 +0000 (18:38 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Thu, 1 Mar 2012 18:38:22 +0000 (18:38 +0000)
reduce debug spam (only tested on windows)

svn path=/trunk/; revision=55950

reactos/cmake/gcc.cmake

index e2d2b51..310da78 100644 (file)
@@ -16,6 +16,14 @@ endif()
 # Compiler Core
 add_compile_flags("-pipe -fms-extensions")
 
+#bug
+#file(TO_NATIVE_PATH ${REACTOS_SOURCE_DIR} REACTOS_SOURCE_DIR_NATIVE)
+#workaround
+if (WIN32)
+STRING(REPLACE "/" "\\" REACTOS_SOURCE_DIR_NATIVE ${REACTOS_SOURCE_DIR})
+endif()
+add_compile_flags("-fdebug-prefix-map=${REACTOS_SOURCE_DIR_NATIVE}=ReactOS")
+
 # Debugging
 if(SEPARATE_DBG)
     add_compile_flags("-gdwarf-2 -g2")