[m-rev.] diff: force the source distribution to build in an LLDS grade

Julien Fischer juliensf at csse.unimelb.edu.au
Sun Aug 30 20:22:48 AEST 2009


Fix a problem with the source distribution reported by Ian.
The problem was caused by the recent change to the configuration script
that force the use of the none.gc grade for gcc > 4.2.

tools/test_mercury:
 	Force the C files in the source distribution to be built
 	in a low-level C grade.

Julien.

Index: test_mercury
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/tools/test_mercury,v
retrieving revision 1.355
diff -u -r1.355 test_mercury
--- test_mercury	26 Aug 2009 05:11:01 -0000	1.355
+++ test_mercury	30 Aug 2009 10:18:24 -0000
@@ -818,7 +818,11 @@
      mercury_cv_low_tag_bits=2 \
      mercury_cv_bits_per_word=32 \
      mercury_cv_unboxed_floats=no \
-    sh configure --prefix=$INSTALL_DIR &&
+    # We specify the base grade to be asm_fast in order to ensure that the C
+    # files in the distribution are built in a low-level C grade.
+    # We use asm_fast rather than none or reg because the configure script
+    # will prefer the use of the hlc grades if they are the base grade.
+    sh configure --with-llds-base-grade=asm_fast --prefix=$INSTALL_DIR &&
      $MMAKE MMAKEFLAGS="EXTRA_MCFLAGS='-O5 --opt-space --cross-compiling' $PARALLEL" tar &&
      cd .. &&
      rm -f $UNSTABLE/* &&

--------------------------------------------------------------------------
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