[MLton-commit] r6896
Matthew Fluet
fluet at mlton.org
Tue Sep 30 20:26:46 PDT 2008
Don't default to 'allowFFI true' with non-executable targets.
----------------------------------------------------------------------
U mlton/trunk/mlton/main/main.fun
U mlton/trunk/regression/library/library-test
----------------------------------------------------------------------
Modified: mlton/trunk/mlton/main/main.fun
===================================================================
--- mlton/trunk/mlton/main/main.fun 2008-09-30 21:40:18 UTC (rev 6895)
+++ mlton/trunk/mlton/main/main.fun 2008-10-01 03:26:44 UTC (rev 6896)
@@ -833,12 +833,6 @@
val targetOS = !Target.os
val OSStr = String.toLower (MLton.Platform.OS.toString targetOS)
- (* It doesn't make sense to have a library without FFI *)
- val () =
- case !format of
- Executable => ()
- | _ => ignore (Control.Elaborate.processDefault "allowFFI true")
-
(* Determine whether code should be PIC (position independent) or not.
* This decision depends on the platform and output format.
*)
Modified: mlton/trunk/regression/library/library-test
===================================================================
--- mlton/trunk/regression/library/library-test 2008-09-30 21:40:18 UTC (rev 6895)
+++ mlton/trunk/regression/library/library-test 2008-10-01 03:26:44 UTC (rev 6896)
@@ -2,8 +2,10 @@
ML=../../build/bin/mlton
-O[0]='-link-opt'
-O[1]='-L.'
+O[0]='-default-ann'
+O[1]='allowFFI true'
+O[2]='-link-opt'
+O[3]='-L.'
LIB="-link-opt -l"
More information about the MLton-commit
mailing list