Forráskód Böngészése

* allow disabling the wpo cycle with NOWPOCYCLE=1

git-svn-id: trunk@13572 -
Jonas Maebe 16 éve
szülő
commit
2eebadf944
2 módosított fájl, 11 hozzáadás és 6 törlés
  1. 5 2
      compiler/Makefile
  2. 6 4
      compiler/Makefile.fpc

+ 5 - 2
compiler/Makefile

@@ -3342,7 +3342,9 @@ endif
 	$(MOVE) $(COMPILER_TARGETDIR)/$(PPEXENAME) $(EXENAME)
 	$(MOVE) $(COMPILER_TARGETDIR)/$(PPEXENAME) $(EXENAME)
 ifeq ($(CPU_SOURCE),$(PPC_TARGET))
 ifeq ($(CPU_SOURCE),$(PPC_TARGET))
 ifeq ($(OS_SOURCE),$(OS_TARGET))
 ifeq ($(OS_SOURCE),$(OS_TARGET))
+ifndef NOWPOCYCLE
 ifdef RELEASE
 ifdef RELEASE
+DOWPOCYCLE=1
 wpocycle:
 wpocycle:
 	$(RM) $(EXENAME)
 	$(RM) $(EXENAME)
 	$(MAKE) 'FPC=$(BASEDIR)/$(TEMPNAME3)' 'OPT=$(LOCALOPT) $(OPTWPOCOLLECT)' compiler
 	$(MAKE) 'FPC=$(BASEDIR)/$(TEMPNAME3)' 'OPT=$(LOCALOPT) $(OPTWPOCOLLECT)' compiler
@@ -3353,8 +3355,9 @@ wpocycle:
 	$(MAKE) 'FPC=$(BASEDIR)/$(TEMPWPONAME1)' 'OPT=$(RTLOPT) $(subst pp1.wpo,pp2.wpo,$(OPTWPOPERFORM))' rtlclean rtl
 	$(MAKE) 'FPC=$(BASEDIR)/$(TEMPWPONAME1)' 'OPT=$(RTLOPT) $(subst pp1.wpo,pp2.wpo,$(OPTWPOPERFORM))' rtlclean rtl
 	$(MAKE) 'FPC=$(BASEDIR)/$(TEMPWPONAME1)' 'OPT=$(LOCALOPT) $(subst pp1.wpo,pp2.wpo,$(OPTWPOPERFORM))' $(addsuffix _clean,$(ALLTARGETS)) compiler
 	$(MAKE) 'FPC=$(BASEDIR)/$(TEMPWPONAME1)' 'OPT=$(LOCALOPT) $(subst pp1.wpo,pp2.wpo,$(OPTWPOPERFORM))' $(addsuffix _clean,$(ALLTARGETS)) compiler
 	$(COPY) $(EXENAME) $(TEMPWPONAME2)
 	$(COPY) $(EXENAME) $(TEMPWPONAME2)
-	$(MAKE) echotime
-else
+endif
+endif
+ifndef DOWPOCYCLE
 wpocycle:
 wpocycle:
 endif
 endif
 ifdef DIFF
 ifdef DIFF

+ 6 - 4
compiler/Makefile.fpc

@@ -409,7 +409,9 @@ ifeq ($(OS_SOURCE),$(OS_TARGET))
 # Normal cycle
 # Normal cycle
 #
 #
 
 
+ifndef NOWPOCYCLE
 ifdef RELEASE
 ifdef RELEASE
+DOWPOCYCLE=1
 # Two WPO cycles in case of RELEASE=1
 # Two WPO cycles in case of RELEASE=1
 wpocycle:
 wpocycle:
 # don't use cycle_clean, it will delete the compiler utilities again
 # don't use cycle_clean, it will delete the compiler utilities again
@@ -422,12 +424,12 @@ wpocycle:
         $(MAKE) 'FPC=$(BASEDIR)/$(TEMPWPONAME1)' 'OPT=$(RTLOPT) $(subst pp1.wpo,pp2.wpo,$(OPTWPOPERFORM))' rtlclean rtl
         $(MAKE) 'FPC=$(BASEDIR)/$(TEMPWPONAME1)' 'OPT=$(RTLOPT) $(subst pp1.wpo,pp2.wpo,$(OPTWPOPERFORM))' rtlclean rtl
         $(MAKE) 'FPC=$(BASEDIR)/$(TEMPWPONAME1)' 'OPT=$(LOCALOPT) $(subst pp1.wpo,pp2.wpo,$(OPTWPOPERFORM))' $(addsuffix _clean,$(ALLTARGETS)) compiler
         $(MAKE) 'FPC=$(BASEDIR)/$(TEMPWPONAME1)' 'OPT=$(LOCALOPT) $(subst pp1.wpo,pp2.wpo,$(OPTWPOPERFORM))' $(addsuffix _clean,$(ALLTARGETS)) compiler
         $(COPY) $(EXENAME) $(TEMPWPONAME2)
         $(COPY) $(EXENAME) $(TEMPWPONAME2)
-        $(MAKE) echotime
-else
-wpocycle:
+endif
+endif
 
 
+ifndef DOWPOCYCLE
+wpocycle:
 endif
 endif
-        
 
 
 # Used to avoid unnecessary steps
 # Used to avoid unnecessary steps
 ifdef DIFF
 ifdef DIFF