[m-rev.] diff: always pas ALL_GRADEFLAGS to mmc
Simon Taylor
stayl at cs.mu.OZ.AU
Sat May 17 14:24:23 AEST 2003
Estimated hours taken: 0.25
Branches: main
compiler/modules.m:
Always pass ALL_GRADEFLAGS to mmc, even when building the
interface files. This avoids spurious "debugging is
available only in low-level C grades" errors when
the default grade is hlc.gc.
Zoltan did this for scripts/Mmake.rules but not modules.m.
scripts/Mmake.rules:
Pass ALL_GRADEFLAGS when errorchecking and converting to Mercury.
Index: scripts/Mmake.rules
===================================================================
RCS file: /home/mercury1/repository/mercury/scripts/Mmake.rules,v
retrieving revision 1.144
diff -u -u -r1.144 Mmake.rules
--- scripts/Mmake.rules 13 Apr 2003 05:48:35 -0000 1.144
+++ scripts/Mmake.rules 17 May 2003 02:07:31 -0000
@@ -303,13 +303,13 @@
# (Is that a bug in unix? In bash?)
.m.err:
- $(MCE) $(ALL_MCFLAGS) $(*F) $(ERR_REDIRECT)
+ $(MCE) $(ALL_GRADEFLAGS) $(ALL_MCFLAGS) $(*F) $(ERR_REDIRECT)
@touch $@
endif # MMAKE_USE_MMC_MAKE == no
.m.ugly:
- $(MC) --convert-to-mercury $(ALL_MCFLAGS) $(*F)
+ $(MC) --convert-to-mercury $(ALL_GRADEFLAGS) $(ALL_MCFLAGS) $(*F)
#-----------------------------------------------------------------------------#
#
Index: compiler/modules.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/modules.m,v
retrieving revision 1.270
diff -u -u -r1.270 modules.m
--- compiler/modules.m 18 Mar 2003 02:43:40 -0000 1.270
+++ compiler/modules.m 17 May 2003 02:08:01 -0000
@@ -2785,11 +2785,14 @@
io__write_strings(DepStream, [
"\n",
Date0FileName, " : ", SourceFileName, "\n",
- "\t$(MCPI) $(ALL_MCPIFLAGS) ", ModuleArg, "\n",
+ "\t$(MCPI) $(ALL_GRADEFLAGS) ",
+ "$(ALL_MCPIFLAGS) ", ModuleArg, "\n",
DateFileName, " : ", SourceFileName, "\n",
- "\t$(MCI) $(ALL_MCIFLAGS) ", ModuleArg, "\n",
+ "\t$(MCI) $(ALL_GRADEFLAGS) $(ALL_MCIFLAGS) ",
+ ModuleArg, "\n",
Date3FileName, " : ", SourceFileName, "\n",
- "\t$(MCSI) $(ALL_MCSIFLAGS) ", ModuleArg, "\n",
+ "\t$(MCSI) $(ALL_MCIFLAGS) $(ALL_MCSIFLAGS) ",
+ ModuleArg, "\n",
OptDateFileName, " : ", SourceFileName, "\n",
"\t$(MCOI) $(ALL_GRADEFLAGS) ",
"$(ALL_MCOIFLAGS) ", ModuleArg, "\n",
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list