Move gcc -g and -Wall options out of rbuild and into .rbuild files

Move non-architecture-specific msc options to ReactOS-generic.rbuild

svn path=/trunk/; revision=41520
This commit is contained in:
KJK::Hyperion 2009-06-21 22:13:28 +00:00
parent da2965ea12
commit 586a1d0fff
5 changed files with 18 additions and 11 deletions

View file

@ -14,6 +14,9 @@
<define name="__arm__" />
<define name="TARGET_arm" host="true" />
<compilerflag compiler="cc,cxx">-gstabs+</compilerflag>
<compilerflag compiler="as">-gstabs+</compilerflag>
<if property="DBG" value="1">
<define name="DBG">1</define>
<define name="_SEH_ENABLE_TRACE" />

View file

@ -126,7 +126,14 @@
<xi:include href="tools/tools.rbuild" />
</directory>
<compilerflag compiler="cxx" compilerset="gcc">-Wno-non-virtual-dtor</compilerflag>
<group compilerset="gcc">
<compilerflag>-Wall</compilerflag>
<compilerflag compiler="cxx">-Wno-non-virtual-dtor</compilerflag>
</group>
<compilerflag compilerset="msc">/wd4711</compilerflag>
<group compilerset="msc">
<compilerflag>/Zl</compilerflag>
<compilerflag>/Zi</compilerflag>
<compilerflag>/W1</compilerflag>
</group>
</group>

View file

@ -43,6 +43,8 @@
<compilerflag>-Wno-strict-aliasing</compilerflag>
<compilerflag>-Wpointer-arith</compilerflag>
<compilerflag>-Wno-multichar</compilerflag>
<compilerflag>-gstabs+</compilerflag>
<!-- compilerflag>-H</compilerflag> enable this for header traces -->
</group>
@ -70,11 +72,10 @@
</if>
<compilerflag>/GS-</compilerflag>
<compilerflag>/Zl</compilerflag>
<compilerflag>/Zi</compilerflag>
<compilerflag>/Wall</compilerflag>
</group>
<compilerflag compiler="as">-gstabs+</compilerflag>
<group linkerset="ld">
<linkerflag>-disable-stdcall-fixup</linkerflag>
</group>

View file

@ -20,4 +20,6 @@
<compilerflag>-meabi</compilerflag>
<compilerflag>-O2</compilerflag>
<compilerflag>-Wno-strict-aliasing</compilerflag>
<compilerflag compiler="cc,cxx">-gstabs+</compilerflag>
<compilerflag compiler="as">-gstabs+</compilerflag>
</project>

View file

@ -455,8 +455,6 @@ MingwBackend::GenerateGlobalVariables () const
if ( ProjectNode.configuration.Compiler == GnuGcc )
{
fprintf ( fMakefile, "PROJECT_CFLAGS += -Wall\n" );
fprintf ( fMakefile, "PROJECT_CXXFLAGS += -Wall\n" );
fprintf ( fMakefile, "ifneq ($(OARCH),)\n" );
fprintf ( fMakefile, "PROJECT_CFLAGS += -march=$(OARCH)\n" );
fprintf ( fMakefile, "PROJECT_CXXFLAGS += -march=$(OARCH)\n" );
@ -466,10 +464,6 @@ MingwBackend::GenerateGlobalVariables () const
fprintf ( fMakefile, "PROJECT_CXXFLAGS += -mtune=$(TUNE)\n" );
fprintf ( fMakefile, "endif\n" );
fprintf ( fMakefile, "PROJECT_CFLAGS += -g%s\n", Environment::GetArch() == "amd64" ? "dwarf-2" : "stabs+" );
fprintf ( fMakefile, "PROJECT_CXXFLAGS += -g%s\n", Environment::GetArch() == "amd64" ? "dwarf-2" : "stabs+" );
fprintf ( fMakefile, "PROJECT_ASFLAGS += -g%s\n", Environment::GetArch() == "amd64" ? "dwarf-2" : "stabs+" );
if ( usePipe )
{
fprintf ( fMakefile, "PROJECT_CFLAGS += -pipe\n" );