summaryrefslogtreecommitdiff
path: root/utils/simulator/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'utils/simulator/Makefile')
-rw-r--r--utils/simulator/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/simulator/Makefile b/utils/simulator/Makefile
index f7ebcb0ab4..ca0e219160 100644
--- a/utils/simulator/Makefile
+++ b/utils/simulator/Makefile
@@ -108,7 +108,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
ifneq ($(findstring Error,$(FPC)),)
override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
endif