< prev index next >

make/hotspot/lib/JvmFlags.gmk

Print this page




  57 # Remaining TARGET_ARCH_* is needed to select the cpu specific
  58 # sources for 64-bit ARM ports (arm versus aarch64).
  59 JVM_CFLAGS_TARGET_DEFINES += \
  60     -DTARGET_ARCH_$(HOTSPOT_TARGET_CPU_ARCH) \
  61     -DINCLUDE_SUFFIX_OS=_$(HOTSPOT_TARGET_OS) \
  62     -DINCLUDE_SUFFIX_CPU=_$(HOTSPOT_TARGET_CPU_ARCH) \
  63     -DINCLUDE_SUFFIX_COMPILER=_$(HOTSPOT_TOOLCHAIN_TYPE) \
  64     -DTARGET_COMPILER_$(HOTSPOT_TOOLCHAIN_TYPE) \
  65     -D$(HOTSPOT_TARGET_CPU_DEFINE) \
  66     -DHOTSPOT_LIB_ARCH='"$(OPENJDK_TARGET_CPU_LEGACY_LIB)"' \
  67     #
  68 
  69 ifeq ($(DEBUG_LEVEL), release)
  70   # For hotspot, release builds differ internally between "optimized" and "product"
  71   # in that "optimize" does not define PRODUCT.
  72   ifneq ($(HOTSPOT_DEBUG_LEVEL), optimized)
  73     JVM_CFLAGS_DEBUGLEVEL := -DPRODUCT
  74   endif
  75 else ifeq ($(DEBUG_LEVEL), fastdebug)
  76   JVM_CFLAGS_DEBUGLEVEL := -DASSERT
  77   ifeq ($(filter $(OPENJDK_TARGET_OS), windows aix), )
  78     # NOTE: Old build did not define CHECK_UNHANDLED_OOPS on Windows and AIX.
  79     JVM_CFLAGS_DEBUGLEVEL += -DCHECK_UNHANDLED_OOPS
  80   endif
  81 else ifeq ($(DEBUG_LEVEL), slowdebug)
  82   # _NMT_NOINLINE_ informs NMT that no inlining is done by the compiler
  83   JVM_CFLAGS_DEBUGLEVEL := -DASSERT -D_NMT_NOINLINE_
  84 endif
  85 
  86 JVM_CFLAGS += \
  87     $(JVM_CFLAGS_DEBUGLEVEL) \
  88     $(JVM_CFLAGS_TARGET_DEFINES) \
  89     $(JVM_CFLAGS_FEATURES) \
  90     $(JVM_CFLAGS_INCLUDES) \
  91     $(EXTRA_CFLAGS) \
  92     #
  93 
  94 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.
  95 ifeq ($(USE_PRECOMPILED_HEADER), false)
  96   JVM_CFLAGS += -DDONT_USE_PRECOMPILED_HEADER
  97 endif


  57 # Remaining TARGET_ARCH_* is needed to select the cpu specific
  58 # sources for 64-bit ARM ports (arm versus aarch64).
  59 JVM_CFLAGS_TARGET_DEFINES += \
  60     -DTARGET_ARCH_$(HOTSPOT_TARGET_CPU_ARCH) \
  61     -DINCLUDE_SUFFIX_OS=_$(HOTSPOT_TARGET_OS) \
  62     -DINCLUDE_SUFFIX_CPU=_$(HOTSPOT_TARGET_CPU_ARCH) \
  63     -DINCLUDE_SUFFIX_COMPILER=_$(HOTSPOT_TOOLCHAIN_TYPE) \
  64     -DTARGET_COMPILER_$(HOTSPOT_TOOLCHAIN_TYPE) \
  65     -D$(HOTSPOT_TARGET_CPU_DEFINE) \
  66     -DHOTSPOT_LIB_ARCH='"$(OPENJDK_TARGET_CPU_LEGACY_LIB)"' \
  67     #
  68 
  69 ifeq ($(DEBUG_LEVEL), release)
  70   # For hotspot, release builds differ internally between "optimized" and "product"
  71   # in that "optimize" does not define PRODUCT.
  72   ifneq ($(HOTSPOT_DEBUG_LEVEL), optimized)
  73     JVM_CFLAGS_DEBUGLEVEL := -DPRODUCT
  74   endif
  75 else ifeq ($(DEBUG_LEVEL), fastdebug)
  76   JVM_CFLAGS_DEBUGLEVEL := -DASSERT
  77   ifneq ($call isTargetOs, windows aix), true)
  78     # NOTE: Old build did not define CHECK_UNHANDLED_OOPS on Windows and AIX.
  79     JVM_CFLAGS_DEBUGLEVEL += -DCHECK_UNHANDLED_OOPS
  80   endif
  81 else ifeq ($(DEBUG_LEVEL), slowdebug)
  82   # _NMT_NOINLINE_ informs NMT that no inlining is done by the compiler
  83   JVM_CFLAGS_DEBUGLEVEL := -DASSERT -D_NMT_NOINLINE_
  84 endif
  85 
  86 JVM_CFLAGS += \
  87     $(JVM_CFLAGS_DEBUGLEVEL) \
  88     $(JVM_CFLAGS_TARGET_DEFINES) \
  89     $(JVM_CFLAGS_FEATURES) \
  90     $(JVM_CFLAGS_INCLUDES) \
  91     $(EXTRA_CFLAGS) \
  92     #
  93 
  94 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.
  95 ifeq ($(USE_PRECOMPILED_HEADER), false)
  96   JVM_CFLAGS += -DDONT_USE_PRECOMPILED_HEADER
  97 endif
< prev index next >