From: rrt Date: Wed, 8 Aug 2001 12:27:37 +0000 (+0000) Subject: [project @ 2001-08-08 12:27:37 by rrt] X-Git-Tag: Approximately_9120_patches~1320 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;ds=sidebyside;h=da582343fd398cb87021c48c87bf197fa781d2ce;p=ghc-hetmet.git [project @ 2001-08-08 12:27:37 by rrt] Instead of copying the assemblies we need to this directory, write an app.exe.config file for each program we run. --- diff --git a/ghc/compiler/ilxGen/tests/Makefile b/ghc/compiler/ilxGen/tests/Makefile index 51020bb..423839c 100644 --- a/ghc/compiler/ilxGen/tests/Makefile +++ b/ghc/compiler/ilxGen/tests/Makefile @@ -39,7 +39,7 @@ prel: ilx %.$(ilx_way).exe : %.$(ilx_way).il ../Entry.$(ilx_way).il cat $*.$(ilx_way).il ../Entry.$(ilx_way).il > $@.tmp - echo "call devcorb2gen free" > tmp.bat +# echo "call devcorb2gen free" > tmp.bat echo "ilasm /DEBUG /QUIET /OUT=$@ $@.tmp" >> tmp.bat cmd /c tmp.bat @@ -57,42 +57,49 @@ prel: ilx # Used to run performance comparisons against native code GHC %.Onot.exe: %.hs - ghc -Onot -o $@ $< + $(GHC_INPLACE) -Onot -o $@ $< %.O.exe: %.hs - ghc -O -o $@ $< + $(GHC_INPLACE) -O -o $@ $< -%.run: %.exe +WIN_TOP_ABS = $(subst /,\,$(FPTOOLS_TOP_ABS)) +WIN_ILX2IL_HOME = $(subst /,\,$(ILX2IL_HOME)) + +app.config: + echo "" > $@ + echo "" >> $@ + echo "" >> $@ + echo "" >> $@ + echo "" >> $@ + echo "" >> $@ + echo "" >> $@ + +%.run: %.exe app.config time -p $< #------------------------------------------------------------------------ # Running: -HSstd_cbits.dll: ../../../lib/std/cbits/HSstd_cbits.dll +HSstd_cbits.dll: $(DLL_PEN)/HSstd_cbits.dll cp $< $@ %.cordbg.run: HSstd_cbits.dll %.exe - cp $(TOP)/lib/std/*.$(ilx_way).dll . - cp $(ILX2IL_HOME)/bin/msilxlib$(ilx2il_suffix).dll . - cp $(TOP)/lib/std/*.$(ilx_way).pdb . - cp $(ILX2IL_HOME)/bin/msilxlib$(ilx2il_suffix).pdb . - echo "call devcorb2gen fastchecked" > $@.bat + cp app.config $@.config +# echo "call devcorb2gen fastchecked" > $@.bat echo "$(LOCALRUN)$(subst /,\\,$*).exe 2>&1" >> $@.bat time -p cmd /c $(subst /,\\,$@).bat rm $@.bat %.debug.run: HSstd_cbits.dll %.exe - cp $(TOP)/lib/std/*.$(ilx_way).dll . - cp $(ILX2IL_HOME)/bin/msilxlib$(ilx2il_suffix).dll . - echo "call devcorb2gen fastchecked" > $@.bat + cp app.config $@.config +# echo "call devcorb2gen fastchecked" > $@.bat echo "$(LOCALRUN)$(subst /,\\,$*).exe 2>&1" >> $@.bat time -p cmd /c $(subst /,\\,$@).bat rm $@.bat %.retail.run: HSstd_cbits.dll %.exe - cp $(TOP)/lib/std/*.$(ilx_way).dll . - cp $(ILX2IL_HOME)/bin/msilxlib$(ilx2il_suffix).dll . - echo "call devcorb2gen free" > $@.bat + cp app.config $@.config +# echo "call devcorb2gen free" > $@.bat echo "$(LOCALRUN)$(subst /,\\,$*).exe 2>&1" >> $@.bat time -p cmd /c $(subst /,\\,$@).bat rm $@.bat