Add GDB property for debugging with gdb
authorSaveliy Tretiakov <saveliyt@gmail.com>
Thu, 20 Apr 2006 16:13:50 +0000 (16:13 +0000)
committerSaveliy Tretiakov <saveliyt@gmail.com>
Thu, 20 Apr 2006 16:13:50 +0000 (16:13 +0000)
svn path=/trunk/; revision=21674

reactos/ReactOS.rbuild
reactos/config.template.rbuild

index aafabe8..d5ab7c4 100644 (file)
     <define name="KDBG" value="1" />
     <property name="DBG_OR_KDBG" value="true" />
   </if>
-  <compilerflag>-Os</compilerflag>
-  <compilerflag>-Wno-strict-aliasing</compilerflag>
-  <compilerflag>-ftracer</compilerflag>
-  <compilerflag>-momit-leaf-frame-pointer</compilerflag>
-  <compilerflag>-mpreferred-stack-boundary=2</compilerflag>
+  
+  <if property="GDB" value="0">
+    <compilerflag>-Os</compilerflag>
+    <compilerflag>-Wno-strict-aliasing</compilerflag>
+    <compilerflag>-ftracer</compilerflag>
+    <compilerflag>-momit-leaf-frame-pointer</compilerflag>
+    <compilerflag>-mpreferred-stack-boundary=2</compilerflag>
+  </if>
   <compilerflag>-Wpointer-arith</compilerflag>
 
   <include>.</include>
index a47e717..1c0b026 100644 (file)
 -->
 <property name="DBG" value="1" />
 
+
+<!--
+  Whether to compile for debugging with GDB. If you don't use GDB, don't
+  enable this.
+-->
+<property name="GDB" value="0" />
+
 </rbuild>