< prev index next >

make/solaris/makefiles/sparcWorks.make

Print this page
rev 10160 : 8144695: --disable-warnings-as-errors does not work for HotSpot build
Reviewed-by: duke

@@ -143,11 +143,12 @@
 
 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.
 CFLAGS += -DDONT_USE_PRECOMPILED_HEADER
 
 # Compiler warnings are treated as errors
-CFLAGS_WARN = -xwe
+WARNINGS_ARE_ERRORS ?= -xwe
+CFLAGS_WARN = $(WARNINGS_ARE_ERRORS)
 
 ################################################
 # Begin current (>=5.9) Forte compiler options #
 #################################################
 
< prev index next >