* check cpu_target before passing it to fpc

git-svn-id: trunk@8990 -
This commit is contained in:
peter 2007-10-29 16:34:03 +00:00
parent ad1c9bf4e6
commit fce01e8aab
2 changed files with 2230 additions and 2283 deletions

File diff suppressed because it is too large Load Diff

View File

@ -167,7 +167,11 @@ ifndef FPC
FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
ifneq ($(FPCPROG),)
FPCPROG:=$(firstword $(FPCPROG))
ifneq ($(CPU_TARGET),)
FPC:=$(shell $(FPCPROG) -P$(CPU_TARGET) -PB)
else
FPC:=$(shell $(FPCPROG) -PB)
endif
# Older fpc executables didn't support it and return
# Error: Illegal processor... If found then fallback to ppc386
ifneq ($(findstring Error,$(FPC)),)