In config add switch OARCH for optimze build for the cpu you want

for rule.mak
remove hardcoding of optimze build for cpu.
-march=i486 to -march=$(OARCH)

svn path=/trunk/; revision=10876
This commit is contained in:
Magnus Olsen 2004-09-16 17:35:33 +00:00
parent 8523764fef
commit e75c574ed1
2 changed files with 13 additions and 1 deletions

View file

@ -5,6 +5,18 @@
# Possible values in the future: alpha,i386,m68k,mips,powerpc
ARCH := i386
#
# Which cpu should reactos optimze for
# example : i486, i586, pentium, pentium2, pentum3, pentium4
# athlond-xp, athlond-mp, k6-2,
#
# see gcc manual for more cpu name and which cpu it can
# be optimze for.
#
OARCH := i486
#
# Whether to compile in the kernel debugger
#

View file

@ -136,7 +136,7 @@ export BIN2RES = $(Q)$(TOOLS_PATH)/bin2res/bin2res
export XSLTPROC = $(Q)xsltproc
export MS2PS = $(Q)$(TOOLS_PATH)/ms2ps/ms2ps
export STD_CFLAGS = -I$(PATH_TO_TOP)/include -I$(W32API_PATH)/include -pipe -march=i486 -D_M_IX86
export STD_CFLAGS = -I$(PATH_TO_TOP)/include -I$(W32API_PATH)/include -pipe -march=$(OARCH) -D_M_IX86
export STD_CPPFLAGS = $(STD_CFLAGS)
export STD_ASFLAGS = -I$(PATH_TO_TOP)/include -I$(W32API_PATH)/include -D__ASM__ -D_M_IX86
export STD_RCFLAGS = --include-dir $(PATH_TO_TOP)/include --include-dir $(W32API_PATH)/include