[m-rev.] diff: fix .module_dep rule in .dep files

Peter Wang novalazy at gmail.com
Fri May 7 13:04:07 AEST 2010


On 2010-05-06, Peter Ross <pdross at gmail.com> wrote:
> On Thu, May 6, 2010 at 1:44 PM, Julien Fischer
> <juliensf at csse.unimelb.edu.au> wrote:
> >
> >
> > On Thu, 6 May 2010, Paul Bone wrote:
> >
> >> On Tue, May 04, 2010 at 12:08:58PM +1000, Peter Ross wrote:
> >>>
> >>> Hi,
> >>>
> >>> I could no longer compile in the grade hlc.gc.ssdebug because of missing
> >>> .int and .mih files in the installation.o
> >>>
> >>> I tested by installing a compiler with the following libgrades
> >>> asm_fast.gc, hlc.gc and hlc.gc.ssdebug and ensuring that all three
> >>> grades could compile a test program.
> >>>
> >>
> >> I'm having trouble because of this change.
> >>
> >> make[1]: *** No rule to make target `mdbcomp.module_dep', needed by
> >> `libmer_mdbcomp.install_ints'.  Stop.
...
> >
> Still looking into this.

Committed this fix.
I made a small mistake in the log message. `.d' should be `.dep'.


Branches: main, 10.04

compiler/write_deps_file.m:
        Write a missing `else' line in generated `.d' files in the block of
        code that states how to generate `.module_dep' files.

diff --git a/compiler/write_deps_file.m b/compiler/write_deps_file.m
index b607873..95faed7 100644
--- a/compiler/write_deps_file.m
+++ b/compiler/write_deps_file.m
@@ -438,6 +438,7 @@ write_dependency_file(Globals, Module, AllDepsSet, MaybeTransOptDeps, !IO) :-
             "else\n",
             " ifeq ($(findstring il,$(GRADE)),il)\n",
             ModuleDepFileName, " : ", ILFileName, "\n",
+            " else\n",
             "  ifeq ($(findstring java,$(GRADE)),java)\n",
             ModuleDepFileName, " : ", JavaFileName, "\n",
             "  else\n",

--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list