浏览代码

* Run batch using COMSPEC for go32v2 and watcom

git-svn-id: trunk@8562 -
pierre 18 年之前
父节点
当前提交
3c096a9549
共有 2 个文件被更改,包括 198 次插入180 次删除
  1. 183 179
      utils/fpcm/fpcmake.inc
  2. 15 1
      utils/fpcm/fpcmake.ini

文件差异内容过多而无法显示
+ 183 - 179
utils/fpcm/fpcmake.inc


+ 15 - 1
utils/fpcm/fpcmake.ini

@@ -11,6 +11,7 @@
 BSDs = freebsd netbsd openbsd darwin
 UNIXs = linux $(BSDs) solaris qnx
 LIMIT83fs = go32v2 os2 emx watcom
+OSNeedsComspecToRunBatch = go32v2 watcom
 
 #Empty target for rules that always should run. Needed if
 #the target is non-phoney, and there is non-phony prereqisites.
@@ -94,6 +95,12 @@ SRCBATCHEXT=.bat
 endif
 endif
 
+ifdef COMSPEC
+ifneq ($(findstring $(OS_SOURCE),$(OSNeedsComspecToRunBatch)),)
+RUNBATCH=$(COMSPEC) /C
+endif
+endif
+
 # Path Separator, the subst trick is necessary for the \ that can't exists
 # at the end of a line
 ifdef inUnix
@@ -1262,7 +1269,7 @@ endif
 
 ifndef CROSSBOOTSTRAP
 ifneq ($(BINUTILSPREFIX),)
-override FPCOPT+=-XP$(BINUTILSPREFIX) 
+override FPCOPT+=-XP$(BINUTILSPREFIX)
 endif
 ifneq ($(BINUTILSPREFIX),)
 override FPCOPT+=-Xr$(RLINKPATH)
@@ -1455,9 +1462,13 @@ ifeq (,$(findstring -s ,$(COMPILER)))
 EXECPPAS=
 else
 ifeq ($(FULL_SOURCE),$(FULL_TARGET))
+ifdef RUNBATCH
+EXECPPAS:=@$(RUNBATCH) $(PPAS)
+else
 EXECPPAS:=@$(PPAS)
 endif
 endif
+endif
 
 
 [loaderrules]
@@ -1885,6 +1896,9 @@ else
 endif
 ifdef inUnix
         /bin/sh $(ZIPWRAPPER)
+else
+ifdef RUNBATCH
+        $(RUNBATCH) (ZIPWRAPPER)
 else
         $(ZIPWRAPPER)
 endif

部分文件因为文件数量过多而无法显示