Small change to make OARCH optional.
authorArt Yerkes <art.yerkes@gmail.com>
Sun, 2 Sep 2007 09:59:11 +0000 (09:59 +0000)
committerArt Yerkes <art.yerkes@gmail.com>
Sun, 2 Sep 2007 09:59:11 +0000 (09:59 +0000)
svn path=/trunk/; revision=28760

reactos/tools/rbuild/backend/mingw/mingw.cpp

index e55aec7..9bb749f 100644 (file)
@@ -426,7 +426,9 @@ MingwBackend::GenerateGlobalVariables () const
        fprintf ( fMakefile, "PROJECT_LFLAGS := %s\n",
                  GenerateProjectLFLAGS ().c_str () );
        fprintf ( fMakefile, "PROJECT_CFLAGS += -Wall\n" );
+       fprintf ( fMakefile, "ifneq ($(OARCH),)\n" );
        fprintf ( fMakefile, "PROJECT_CFLAGS += -march=$(OARCH)\n" );
+       fprintf ( fMakefile, "endif\n" );
        fprintf ( fMakefile, "PROJECT_CFLAGS += $(PROJECT_GCCOPTIONS)\n" );
        fprintf ( fMakefile, "\n" );
 }