changeset 12190:2a7d7cc90f2f

7151898: Check for LANG in Mac OS X jdk build sanity check [macosx] Reviewed-by: ohair, smarks
author michaelm
date Thu, 15 Mar 2012 16:45:55 +0000
parents e395fe961b4a
children 115ba6d4dcdd
files jdk/make/common/shared/Sanity.gmk
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/make/common/shared/Sanity.gmk	Thu Mar 08 13:44:33 2012 -0800
+++ b/jdk/make/common/shared/Sanity.gmk	Thu Mar 15 16:45:55 2012 +0000
@@ -348,7 +348,13 @@
 	    "        Try setting LANG to 'C'. \n" \
 	    "" >> $(WARNING_FILE) ; \
         fi
+ifeq ($(PLATFORM), macosx)
+	@if [ "$(LANG)" = "" ]; then \
+	  $(ECHO) "ERROR: LANG must be set on Mac OS X. Recommended value is \"C\"" >> $(ERROR_FILE) ; \
+	fi
 endif
+endif
+
 
 ######################################################
 # Check the Windows cygwin version