< prev index next >

make/hotspot/gensrc/GensrcAdlc.gmk

Print this page
8248238: Adding Windows support to OpenJDK on AArch64

Summary: Adding Windows support for AArch64

Contributed-by: Ludovic Henry <luhenry@microsoft.com>, Monica Beckwith <monica.beckwith@microsoft.com>
Reviewed-by:


  71       OUTPUT_DIR := $(JVM_VARIANT_OUTPUTDIR)/tools/adlc, \
  72       DEBUG_SYMBOLS := false, \
  73       DISABLED_WARNINGS_clang := tautological-compare, \
  74   ))
  75 
  76   ADLC_TOOL := $(BUILD_ADLC_TARGET)
  77 
  78   ##############################################################################
  79   # Transform the ad source files into C++ source files using adlc
  80 
  81   # Setup flags for the adlc build tool (ADLCFLAGS).
  82   ADLCFLAGS += -q -T
  83 
  84   # ADLC flags depending on target OS
  85   ifeq ($(call isTargetOs, linux), true)
  86     ADLCFLAGS += -DLINUX=1 -D_GNU_SOURCE=1
  87   else ifeq ($(call isTargetOs, aix), true)
  88     ADLCFLAGS += -DAIX=1
  89   else ifeq ($(call isTargetOs, macosx), true)
  90     ADLCFLAGS += -D_ALLBSD_SOURCE=1 -D_GNU_SOURCE=1




  91   endif
  92 
  93   ifeq ($(call isTargetOs, windows), false)
  94     # NOTE: Windows adlc flags was different in the old build. Is this really
  95     # correct?
  96 
  97     # -g makes #line directives in the generated C++ files.
  98     ADLCFLAGS += -g
  99 
 100     ADLCFLAGS += -D$(HOTSPOT_TARGET_CPU_DEFINE)=1
 101   endif
 102 
 103   # This generates checks in the generated C++ files that _LP64 is correctly
 104   # (un)defined when compiling them.
 105   ifeq ($(call isTargetCpuBits, 64), true)
 106     ADLCFLAGS += -D_LP64=1
 107   else
 108     ADLCFLAGS += -U_LP64
 109   endif
 110 




  71       OUTPUT_DIR := $(JVM_VARIANT_OUTPUTDIR)/tools/adlc, \
  72       DEBUG_SYMBOLS := false, \
  73       DISABLED_WARNINGS_clang := tautological-compare, \
  74   ))
  75 
  76   ADLC_TOOL := $(BUILD_ADLC_TARGET)
  77 
  78   ##############################################################################
  79   # Transform the ad source files into C++ source files using adlc
  80 
  81   # Setup flags for the adlc build tool (ADLCFLAGS).
  82   ADLCFLAGS += -q -T
  83 
  84   # ADLC flags depending on target OS
  85   ifeq ($(call isTargetOs, linux), true)
  86     ADLCFLAGS += -DLINUX=1 -D_GNU_SOURCE=1
  87   else ifeq ($(call isTargetOs, aix), true)
  88     ADLCFLAGS += -DAIX=1
  89   else ifeq ($(call isTargetOs, macosx), true)
  90     ADLCFLAGS += -D_ALLBSD_SOURCE=1 -D_GNU_SOURCE=1
  91   else ifeq ($(call isTargetOs, windows), true)
  92     ifeq ($(call isTargetCpuBits, 64), true)
  93       ADLCFLAGS += -D_WIN64=1
  94     endif
  95   endif
  96 
  97   ifeq ($(call isTargetOs, windows), false)
  98     # NOTE: Windows adlc flags was different in the old build. Is this really
  99     # correct?
 100 
 101     # -g makes #line directives in the generated C++ files.
 102     ADLCFLAGS += -g
 103 
 104     ADLCFLAGS += -D$(HOTSPOT_TARGET_CPU_DEFINE)=1
 105   endif
 106 
 107   # This generates checks in the generated C++ files that _LP64 is correctly
 108   # (un)defined when compiling them.
 109   ifeq ($(call isTargetCpuBits, 64), true)
 110     ADLCFLAGS += -D_LP64=1
 111   else
 112     ADLCFLAGS += -U_LP64
 113   endif
 114 


< prev index next >