[MLton-commit] r6886

Wesley Terpstra wesley at mlton.org
Tue Sep 23 08:06:38 PDT 2008


Simplify the compile line using the new MLton defaults.


----------------------------------------------------------------------

U   mlton/trunk/regression/library/library-test

----------------------------------------------------------------------

Modified: mlton/trunk/regression/library/library-test
===================================================================
--- mlton/trunk/regression/library/library-test	2008-09-23 15:05:23 UTC (rev 6885)
+++ mlton/trunk/regression/library/library-test	2008-09-23 15:06:38 UTC (rev 6886)
@@ -2,10 +2,8 @@
 
 ML=../../build/bin/mlton
 
-O[0]='-default-ann'
-O[1]='allowFFI true'
-O[2]='-link-opt'
-O[3]='-L.'
+O[0]='-link-opt'
+O[1]='-L.'
 
 LIB="-link-opt -l"
 
@@ -15,15 +13,15 @@
 set -ex
 
 # Compile DSO #1
-$ML "${O[@]}" "$@" -format libarchive -export-header m1.h libm1.sml libm1.c
-$ML "${O[@]}" "$@" ${LIB}m1 -format library -export-header m2.h libm2.sml libm2.c
+$ML "${O[@]}" "$@" -format libarchive libm1.sml libm1.c
+$ML "${O[@]}" "$@" ${LIB}m1 -format library libm2.sml libm2.c
 
 # Compile DSO #2
-$ML "${O[@]}" "$@" -format libarchive -export-header m3.h libm3.sml libm3.c
-$ML "${O[@]}" "$@" ${LIB}m2 ${LIB}m3 -format library -export-header m4.h libm4.sml libm4.c
+$ML "${O[@]}" "$@" -format libarchive libm3.sml libm3.c
+$ML "${O[@]}" "$@" ${LIB}m2 ${LIB}m3 -format library libm4.sml libm4.c
 
 # Compile executable
-$ML "${O[@]}" "$@" -format archive -export-header m5.h libm5.sml libm5.c
+$ML "${O[@]}" "$@" -format archive libm5.sml libm5.c
 $ML "${O[@]}" "$@" ${LIB}m4 ${LIB}m5 -format executable -export-header check.h check.sml check.c
 
 # Check that symbols resolved correctly




More information about the MLton-commit mailing list