[m-rev.] for review: Add ".pregen" or ".spf" to MR_GRADE_OPT variable.
Peter Wang
novalazy at gmail.com
Tue Sep 17 16:33:51 AEST 2013
Add ".pregen" or ".spf" to MR_GRADE_OPT variable.
".pregen" and ".spf" are settable on the command-line and should
therefore be included in MR_GRADE_OPT.
runtime/mercury_grade.h:
As above.
diff --git a/runtime/mercury_grade.h b/runtime/mercury_grade.h
index 44d356b..2e76320 100644
--- a/runtime/mercury_grade.h
+++ b/runtime/mercury_grade.h
@@ -369,17 +369,19 @@
#if defined(MR_PREGENERATED_DIST)
#define MR_GRADE_PART_11 MR_PASTE2(MR_GRADE_PART_10, _pregen)
+ #define MR_GRADE_OPT_PART_11 MR_GRADE_OPT_PART_10 ".pregen"
#elif defined(MR_USE_SINGLE_PREC_FLOAT)
#if defined(MR_BOXED_FLOAT)
#error "single-precision floats implies unboxed floats"
#endif
#define MR_GRADE_PART_11 MR_PASTE2(MR_GRADE_PART_10, _spf)
+ #define MR_GRADE_OPT_PART_11 MR_GRADE_OPT_PART_10 ".spf"
#elif defined(MR_BOXED_FLOAT)
#define MR_GRADE_PART_11 MR_GRADE_PART_10
#else /* "ubf" stands for "unboxed float" */
#define MR_GRADE_PART_11 MR_PASTE2(MR_GRADE_PART_10, _ubf)
+ #define MR_GRADE_OPT_PART_11 MR_GRADE_OPT_PART_10
#endif
-#define MR_GRADE_OPT_PART_11 MR_GRADE_OPT_PART_10
#ifdef MR_NEW_MERCURYFILE_STRUCT
#define MR_GRADE_PART_12 MR_PASTE2(MR_GRADE_PART_11, _file)
More information about the reviews
mailing list