GAS should also receive the -march flag, not just the compiler... otherwise, gcc won't let you use things like "cmov" on x86, or anything beyond the armv4 instruction set on ARM

svn path=/trunk/; revision=41877
This commit is contained in:
ReactOS Portable Systems Group 2009-07-11 12:57:41 +00:00
parent f00eeb0707
commit 0e36ca655c

View file

@ -456,6 +456,7 @@ MingwBackend::GenerateGlobalVariables () const
if ( ProjectNode.configuration.Compiler == GnuGcc )
{
fprintf ( fMakefile, "ifneq ($(OARCH),)\n" );
fprintf ( fMakefile, "PROJECT_ASFLAGS += -march=$(OARCH)\n" );
fprintf ( fMakefile, "PROJECT_CFLAGS += -march=$(OARCH)\n" );
fprintf ( fMakefile, "PROJECT_CXXFLAGS += -march=$(OARCH)\n" );
fprintf ( fMakefile, "endif\n" );