mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-02 01:06:08 +02:00
* check cpu_target before passing it to fpc
git-svn-id: trunk@8990 -
This commit is contained in:
parent
ad1c9bf4e6
commit
fce01e8aab
File diff suppressed because it is too large
Load Diff
@ -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)),)
|
||||
|
Loading…
Reference in New Issue
Block a user