瀏覽代碼

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

git-svn-id: trunk@27421 -
pierre 11 年之前
父節點
當前提交
b213d2624a
共有 1 個文件被更改,包括 10 次插入2 次删除
  1. 10 2
      utils/fpcm/fpcmake.ini

+ 10 - 2
utils/fpcm/fpcmake.ini

@@ -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