Handle -sh option (generate script to link on host)

git-svn-id: trunk@27421 -
This commit is contained in:
pierre 2014-04-01 15:09:26 +00:00
parent e0a04bdd1c
commit b213d2624a

View File

@ -1449,10 +1449,18 @@ override COMPILER:=$(strip $(FPC) $(FPCOPT))
# also call ppas if with command option -s
# but only if the FULL_SOURCE and FULL_TARGET are equal
ifeq (,$(findstring -s ,$(COMPILER)))
# or if -sh is used
ifneq (,$(findstring -sh ,$(COMPILER)))
UseEXECPPAS=1
endif
ifneq (,$(findstring -s ,$(COMPILER)))
ifeq ($(FULL_SOURCE),$(FULL_TARGET))
UseEXECPPAS=1
endif
endif
ifneq ($(UseEXEPPAS),1)
EXECPPAS=
else
ifeq ($(FULL_SOURCE),$(FULL_TARGET))
ifdef RUNBATCH
EXECPPAS:=@$(RUNBATCH) $(PPAS)
else