8141548: Hotspot Windows build should respect WARNINGS_AS_ERRORS
Reviewed-by: erikj, dholmes
This commit is contained in:
parent
fbac3a147e
commit
5f873e726d
@ -19,7 +19,7 @@
|
|||||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||||
# or visit www.oracle.com if you need additional information or have any
|
# or visit www.oracle.com if you need additional information or have any
|
||||||
# questions.
|
# questions.
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
# Generic compiler settings
|
# Generic compiler settings
|
||||||
@ -54,7 +54,11 @@ CXX=cl.exe
|
|||||||
# improving the quality of crash log stack traces involving jvm.dll.
|
# improving the quality of crash log stack traces involving jvm.dll.
|
||||||
|
|
||||||
# These are always used in all compiles
|
# These are always used in all compiles
|
||||||
CXX_FLAGS=$(EXTRA_CFLAGS) /nologo /W3 /WX
|
CXX_FLAGS=$(EXTRA_CFLAGS) /nologo /W3
|
||||||
|
|
||||||
|
!if "$(WARNINGS_AS_ERRORS)" != "false"
|
||||||
|
CXX_FLAGS=$(CXX_FLAGS) /WX
|
||||||
|
!endif
|
||||||
|
|
||||||
# Let's add debug information when Full Debug Symbols is enabled
|
# Let's add debug information when Full Debug Symbols is enabled
|
||||||
!if "$(ENABLE_FULL_DEBUG_SYMBOLS)" == "1"
|
!if "$(ENABLE_FULL_DEBUG_SYMBOLS)" == "1"
|
||||||
@ -167,7 +171,7 @@ LD_FLAGS= $(LD_FLAGS) /map /debug
|
|||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
|
||||||
!if $(MSC_VER) >= 1600
|
!if $(MSC_VER) >= 1600
|
||||||
LD_FLAGS= $(LD_FLAGS) psapi.lib
|
LD_FLAGS= $(LD_FLAGS) psapi.lib
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
@ -191,4 +195,3 @@ RC_FLAGS=/D "HS_VER=$(HS_VER)" \
|
|||||||
!if "$(MFC_DEBUG)" == "true"
|
!if "$(MFC_DEBUG)" == "true"
|
||||||
RC_FLAGS = $(RC_FLAGS) /D "_DEBUG"
|
RC_FLAGS = $(RC_FLAGS) /D "_DEBUG"
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
@ -31,6 +31,8 @@
|
|||||||
SLASH_JAVA ?= J:
|
SLASH_JAVA ?= J:
|
||||||
PATH_SEP = ;
|
PATH_SEP = ;
|
||||||
|
|
||||||
|
MAKE_ARGS += WARNINGS_AS_ERRORS=$(WARNINGS_AS_ERRORS)
|
||||||
|
|
||||||
# Need PLATFORM (os-arch combo names) for jdk and hotspot, plus libarch name
|
# Need PLATFORM (os-arch combo names) for jdk and hotspot, plus libarch name
|
||||||
ifeq ($(ARCH_DATA_MODEL),32)
|
ifeq ($(ARCH_DATA_MODEL),32)
|
||||||
ARCH_DATA_MODEL=32
|
ARCH_DATA_MODEL=32
|
||||||
|
Loading…
x
Reference in New Issue
Block a user