mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-14 12:30:24 +02:00
Handle -sh option (generate script to link on host)
git-svn-id: trunk@27421 -
This commit is contained in:
parent
e0a04bdd1c
commit
b213d2624a
@ -1449,10 +1449,18 @@ override COMPILER:=$(strip $(FPC) $(FPCOPT))
|
|||||||
|
|
||||||
# also call ppas if with command option -s
|
# also call ppas if with command option -s
|
||||||
# but only if the FULL_SOURCE and FULL_TARGET are equal
|
# 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=
|
EXECPPAS=
|
||||||
else
|
else
|
||||||
ifeq ($(FULL_SOURCE),$(FULL_TARGET))
|
|
||||||
ifdef RUNBATCH
|
ifdef RUNBATCH
|
||||||
EXECPPAS:=@$(RUNBATCH) $(PPAS)
|
EXECPPAS:=@$(RUNBATCH) $(PPAS)
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user