[m-rev.] diff: bootcheck --test-split-library

Zoltan Somogyi zs at cs.mu.OZ.AU
Fri May 16 13:23:14 AEST 2003


tools/bootcheck:
	Add a flag --test-split-library, which builds mer_std.split.a and
	uses it to replace mer_std.a.

Zoltan.

cvs diff: Diffing .
Index: bootcheck
===================================================================
RCS file: /home/mercury1/repository/mercury/tools/bootcheck,v
retrieving revision 1.150
diff -u -b -r1.150 bootcheck
--- bootcheck	1 May 2003 08:03:15 -0000	1.150
+++ bootcheck	16 May 2003 01:29:44 -0000
@@ -76,6 +76,8 @@
 		Don't rebuild the stage 3 directory from scratch after
 		building stage 1. Instead use the existing stage 3 directory
 		as the starting point for mmake.
+	--test-split-library
+		Build the split version of the stage 2 library.
 	--test-params
 		When executing the test suite, use the stage 2 Mmake.params
 		file.
@@ -138,6 +140,7 @@
 target=c
 test_grade=
 test_params=false
+test_split_library=false
 copy_runtime=false
 copy_boehm_gc=false
 copy_profiler=false
@@ -237,6 +240,9 @@
 	--test-grade)
 		test_grade="$2"; shift ;;
 
+	--test-split-library)
+		test_split_library=true ;;
+
 	-r|--copy-runtime)
 		copy_runtime=true ;;
 
@@ -653,6 +659,19 @@
 		else
 			echo "building of stage 2 library not successful"
 			exit 1
+		fi
+
+		if $test_split_library
+		then
+			if (cd stage2/library && $MMAKE $mmake_opts $jfactor $STD_LIB_NAME.split.a)
+			then
+				echo "building of stage 2 split library successful"
+			else
+				echo "building of stage 2 split library not successful"
+				exit 1
+			fi
+
+			mv stage2/library/$STD_LIB_NAME.split.a stage2/library/$STD_LIB_NAME.a
 		fi
 
 		if (cd stage2/browser && $MMAKE $mmake_opts $jfactor library)
--------------------------------------------------------------------------
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