[MLton-commit] r7110

Matthew Fluet fluet at mlton.org
Wed Jun 10 20:22:55 PDT 2009


Use Ville's trick for conditioning on gcc version >= specified version.
----------------------------------------------------------------------

U   mlton/trunk/runtime/Makefile

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

Modified: mlton/trunk/runtime/Makefile
===================================================================
--- mlton/trunk/runtime/Makefile	2009-06-11 03:22:52 UTC (rev 7109)
+++ mlton/trunk/runtime/Makefile	2009-06-11 03:22:54 UTC (rev 7110)
@@ -57,7 +57,7 @@
 
 ifeq ($(TARGET_ARCH), amd64)
 FLAGS += -m64
-ifeq ($(findstring $(GCC_VERSION), 3.4 4.0 4.1 4.3),$(GCC_VERSION))
+ifeq (3.4, $(firstword $(sort $(GCC_VERSION) 3.4)))
 GCOPTFLAGS += --param inline-unit-growth=100
 GCOPTFLAGS += --param max-inline-insns-single=1000
 GCOPTFLAGS += --param large-function-growth=1000




More information about the MLton-commit mailing list