[MLton-commit] r4903
Matthew Fluet
fluet at mlton.org
Mon Dec 4 07:01:16 PST 2006
Set platform specific warnings before building OPTWARNCFLAGS and
DEBUGWARNCFLAGS; the old behavior worked with 'lazy' make variables,
but not with the new 'strict' make variables.
----------------------------------------------------------------------
U mlton/trunk/runtime/Makefile
----------------------------------------------------------------------
Modified: mlton/trunk/runtime/Makefile
===================================================================
--- mlton/trunk/runtime/Makefile 2006-12-03 17:30:29 UTC (rev 4902)
+++ mlton/trunk/runtime/Makefile 2006-12-04 15:01:00 UTC (rev 4903)
@@ -154,14 +154,15 @@
WARNCFLAGS += -Wlong-long
# WARNCFLAGS += -Wunreachable-code
WARNCFLAGS += $(WARNFLAGS)
-OPTWARNCFLAGS := $(WARNCFLAGS) -Wdisabled-optimization $(OPTWARNFLAGS)
-DEBUGWARNCFLAGS := $(WARNCFLAGS) $(DEBUGWARNFLAGS)
# GCC doesn't recognize the %I64 format specifier which means %ll on windows
ifeq ($(TARGET_OS), mingw)
WARNCFLAGS += -Wno-format -Wno-missing-format-attribute
endif
+OPTWARNCFLAGS := $(WARNCFLAGS) -Wdisabled-optimization $(OPTWARNFLAGS)
+DEBUGWARNCFLAGS := $(WARNCFLAGS) $(DEBUGWARNFLAGS)
+
UTILHFILES := \
util.h \
$(shell find util -type f | grep '\.h$$')
More information about the MLton-commit
mailing list