< prev index next >

make/hotspot/lib/JvmFlags.gmk

Print this page




  49     -I$(SUPPORT_OUTPUTDIR)/modules_include/java.base \
  50     -I$(SUPPORT_OUTPUTDIR)/modules_include/java.base/$(OPENJDK_TARGET_OS_INCLUDE_SUBDIR) \
  51     -I$(TOPDIR)/src/java.base/share/native/libjimage \
  52     #
  53 
  54 # INCLUDE_SUFFIX_* is only meant for including the proper
  55 # platform files. Don't use it to guard code. Use the value of
  56 # HOTSPOT_TARGET_CPU_DEFINE etc. instead.
  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 ($(call isTargetOs, windows aix), false)
  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) \


  49     -I$(SUPPORT_OUTPUTDIR)/modules_include/java.base \
  50     -I$(SUPPORT_OUTPUTDIR)/modules_include/java.base/$(OPENJDK_TARGET_OS_INCLUDE_SUBDIR) \
  51     -I$(TOPDIR)/src/java.base/share/native/libjimage \
  52     #
  53 
  54 # INCLUDE_SUFFIX_* is only meant for including the proper
  55 # platform files. Don't use it to guard code. Use the value of
  56 # HOTSPOT_TARGET_CPU_DEFINE etc. instead.
  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 ifneq ($(HOTSPOT_TARGET_LIBC),)
  70   JVM_CFLAGS_TARGET_DEFINES += -DHOTSPOT_LIBC='"$(HOTSPOT_TARGET_LIBC)"'
  71 endif
  72 
  73 ifeq ($(DEBUG_LEVEL), release)
  74   # For hotspot, release builds differ internally between "optimized" and "product"
  75   # in that "optimize" does not define PRODUCT.
  76   ifneq ($(HOTSPOT_DEBUG_LEVEL), optimized)
  77     JVM_CFLAGS_DEBUGLEVEL := -DPRODUCT
  78   endif
  79 else ifeq ($(DEBUG_LEVEL), fastdebug)
  80   JVM_CFLAGS_DEBUGLEVEL := -DASSERT
  81   ifeq ($(call isTargetOs, windows aix), false)
  82     # NOTE: Old build did not define CHECK_UNHANDLED_OOPS on Windows and AIX.
  83     JVM_CFLAGS_DEBUGLEVEL += -DCHECK_UNHANDLED_OOPS
  84   endif
  85 else ifeq ($(DEBUG_LEVEL), slowdebug)
  86   # _NMT_NOINLINE_ informs NMT that no inlining is done by the compiler
  87   JVM_CFLAGS_DEBUGLEVEL := -DASSERT -D_NMT_NOINLINE_
  88 endif
  89 
  90 JVM_CFLAGS += \
  91     $(JVM_CFLAGS_DEBUGLEVEL) \
  92     $(JVM_CFLAGS_TARGET_DEFINES) \
< prev index next >