[MLton-commit] r4660

Stephen Weeks MLton@mlton.org
Fri, 23 Jun 2006 15:16:01 -0700


Added OMIT_BYTECODE control so that one can easily build the runtime
without building the bytecode interpreter.  This is useful when doing
development on a slow machine.


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

U   mlton/branches/on-20050822-x86_64-branch/bin/add-cross
U   mlton/branches/on-20050822-x86_64-branch/runtime/Makefile

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

Modified: mlton/branches/on-20050822-x86_64-branch/bin/add-cross
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/bin/add-cross	2006-06-23 22:13:52 UTC (rev 4659)
+++ mlton/branches/on-20050822-x86_64-branch/bin/add-cross	2006-06-23 22:16:00 UTC (rev 4660)
@@ -82,7 +82,7 @@
 echo 'Making runtime.' 
 ( cd "$src" && tar cf - bin runtime ) | 
         ssh $machine "cd $tmp && tar xf - && cd runtime &&
-                ../bin/mmake COMPILE_FAST=yes TARGET_ARCH=$crossArch TARGET_OS=$crossOS clean all"
+                ../bin/mmake OMIT_BYTECODE=yes TARGET_ARCH=$crossArch TARGET_OS=$crossOS clean all"
 ssh $machine "cd $tmp/runtime && tar cf - *.a" | 
         ( cd "$lib/$crossTarget" && tar xf - )
 ( cd "$src" &&

Modified: mlton/branches/on-20050822-x86_64-branch/runtime/Makefile
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/Makefile	2006-06-23 22:13:52 UTC (rev 4659)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/Makefile	2006-06-23 22:16:00 UTC (rev 4660)
@@ -169,9 +169,12 @@
 	$(UTILCFILES)						\
 	$(shell find basis -type f | grep '\.c$$' | grep -v Real/)	\
 	gc.c							\
-	bytecode/interpret.c					\
 	platform.c
 
+ifneq ($(OMIT_BYTECODE), yes)
+CFILES += bytecode/interpret.c
+endif
+
 HFILES = 							\
 	cenv.h                                                  \
 	$(UTILHFILES)						\