[MLton-commit] r7026
Ville Laurikari
ville at mlton.org
Fri Mar 6 01:15:04 PST 2009
Build 64-bit binaries on ia64. No reason to stay 32-bit.
----------------------------------------------------------------------
U mlton/trunk/bin/add-cross
U mlton/trunk/bin/mlton-script
U mlton/trunk/runtime/Makefile
----------------------------------------------------------------------
Modified: mlton/trunk/bin/add-cross
===================================================================
--- mlton/trunk/bin/add-cross 2009-03-06 09:14:59 UTC (rev 7025)
+++ mlton/trunk/bin/add-cross 2009-03-06 09:15:03 UTC (rev 7026)
@@ -110,6 +110,9 @@
hppa)
archOpts=''
;;
+ia64)
+ archOpts='-mlp64'
+;;
sparc)
archOpts='-m32'
;;
Modified: mlton/trunk/bin/mlton-script
===================================================================
--- mlton/trunk/bin/mlton-script 2009-03-06 09:14:59 UTC (rev 7025)
+++ mlton/trunk/bin/mlton-script 2009-03-06 09:15:03 UTC (rev 7026)
@@ -98,6 +98,7 @@
-target-cc-opt freebsd '-I/usr/local/include' \
-target-cc-opt netbsd '-I/usr/pkg/include' \
-target-cc-opt openbsd '-I/usr/local/include' \
+ -target-cc-opt ia64 '-mlp64 -mtune=itanium2' \
-target-cc-opt sparc '-m32 -mcpu=v8 -Wa,-xarch=v8plusa' \
-target-cc-opt x86 \
'-m32
@@ -110,6 +111,7 @@
-target-link-opt amd64 '-m64' \
-target-link-opt darwin "$darwinLinkOpts" \
-target-link-opt freebsd '-L/usr/local/lib/' \
+ -target-link-opt ia64 '-mlp64' \
-target-link-opt mingw \
'-lws2_32 -lkernel32 -lpsapi -lnetapi32 -lwinmm' \
-target-link-opt mingw '-Wl,--enable-stdcall-fixup' \
Modified: mlton/trunk/runtime/Makefile
===================================================================
--- mlton/trunk/runtime/Makefile 2009-03-06 09:14:59 UTC (rev 7025)
+++ mlton/trunk/runtime/Makefile 2009-03-06 09:15:03 UTC (rev 7026)
@@ -74,6 +74,10 @@
endif
endif
+ifeq ($(TARGET_ARCH), ia64)
+FLAGS += -mlp64 -mtune=itanium2
+endif
+
ifeq ($(TARGET_ARCH), sparc)
FLAGS += -m32 -mcpu=v8 -Wa,-xarch=v8plusa
endif
More information about the MLton-commit
mailing list