mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 04:13:33 +00:00
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:
@@ -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" );
|
||||
|
||||
Reference in New Issue
Block a user