8087156: SetupNativeCompilation ignores CFLAGS_release for cpp files
Reviewed-by: erikj
This commit is contained in:
parent
ebd11a8353
commit
1a4a4c0f70
@ -449,6 +449,16 @@ define SetupNativeCompilationBody
|
|||||||
$1_EXTRA_CXXFLAGS+=$$($1_CXXFLAGS_$(OPENJDK_TARGET_OS)_release)
|
$1_EXTRA_CXXFLAGS+=$$($1_CXXFLAGS_$(OPENJDK_TARGET_OS)_release)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# If no C++ flags are explicitly set, default to using the C flags.
|
||||||
|
# After that, we can set additional C++ flags that should not interfere
|
||||||
|
# with the mechanism for copying the C flags by default.
|
||||||
|
ifeq ($$($1_CXXFLAGS),)
|
||||||
|
$1_CXXFLAGS:=$$($1_CFLAGS)
|
||||||
|
endif
|
||||||
|
ifeq ($$(strip $$($1_EXTRA_CXXFLAGS)),)
|
||||||
|
$1_EXTRA_CXXFLAGS:=$$($1_EXTRA_CFLAGS)
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($$($1_DEBUG_SYMBOLS), true)
|
ifeq ($$($1_DEBUG_SYMBOLS), true)
|
||||||
ifeq ($(ENABLE_DEBUG_SYMBOLS), true)
|
ifeq ($(ENABLE_DEBUG_SYMBOLS), true)
|
||||||
ifdef OPENJDK
|
ifdef OPENJDK
|
||||||
@ -466,16 +476,6 @@ define SetupNativeCompilationBody
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# If no C++ flags are explicitly set, default to using the C flags.
|
|
||||||
# After that, we can set additional C++ flags that should not interfere
|
|
||||||
# with the mechanism for copying the C flags by default.
|
|
||||||
ifeq ($$($1_CXXFLAGS),)
|
|
||||||
$1_CXXFLAGS:=$$($1_CFLAGS)
|
|
||||||
endif
|
|
||||||
ifeq ($$(strip $$($1_EXTRA_CXXFLAGS)),)
|
|
||||||
$1_EXTRA_CXXFLAGS:=$$($1_EXTRA_CFLAGS)
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq (,$$($1_REORDER))
|
ifneq (,$$($1_REORDER))
|
||||||
$1_EXTRA_CFLAGS += $$(C_FLAG_REORDER)
|
$1_EXTRA_CFLAGS += $$(C_FLAG_REORDER)
|
||||||
$1_EXTRA_CXXFLAGS += $$(CXX_FLAG_REORDER)
|
$1_EXTRA_CXXFLAGS += $$(CXX_FLAG_REORDER)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user