mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-07 20:50:42 +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
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user