< prev index next >

make/hotspot/gensrc/GensrcAdlc.gmk

Print this page

 34 
 35   # Flags depending on the build platform/tool chain
 36   # NOTE: No optimization or debug flags set here
 37   ifeq ($(call isBuildOs, linux), true)
 38     ADLC_CFLAGS := -fno-exceptions -DLINUX
 39   else ifeq ($(call isBuildOs, aix), true)
 40     ifeq ($(TOOLCHAIN_TYPE), clang)
 41       ADLC_LDFLAGS += -m64
 42       ADLC_CFLAGS := -fno-rtti -fexceptions -ffunction-sections -m64 -DAIX -mcpu=pwr8
 43     else
 44       ADLC_LDFLAGS += -q64
 45       ADLC_CFLAGS := -qnortti -qeh -q64 -DAIX
 46     endif
 47   else ifeq ($(call isBuildOs, windows), true)
 48     ADLC_LDFLAGS += -nologo
 49     ADLC_CFLAGS := -nologo -EHsc
 50     ADLC_CFLAGS_WARNINGS := -W3 -D_CRT_SECURE_NO_WARNINGS
 51   endif
 52 
 53   # Set the C++ standard
 54   ADLC_CFLAGS += $(ADLC_LANGSTD_CXXFLAG)
 55 
 56   # NOTE: The old build didn't set -DASSERT for windows but it doesn't seem to
 57   # hurt.
 58   ADLC_CFLAGS += -DASSERT
 59 
 60   ADLC_CFLAGS += -D$(HOTSPOT_TARGET_CPU_DEFINE)
 61 
 62   ADLC_CFLAGS += -I$(TOPDIR)/src/hotspot/share
 63 
 64   # Add file macro mappings
 65   ADLC_CFLAGS += $(FILE_MACRO_CFLAGS) $(REPRODUCIBLE_CFLAGS)
 66 
 67   ifeq ($(UBSAN_ENABLED), true)
 68     ADLC_CFLAGS += $(UBSAN_CFLAGS)
 69     ADLC_LDFLAGS += $(UBSAN_LDFLAGS)
 70   endif
 71 
 72   $(eval $(call SetupNativeCompilation, BUILD_ADLC, \
 73       NAME := adlc, \
 74       TYPE := EXECUTABLE, \

 34 
 35   # Flags depending on the build platform/tool chain
 36   # NOTE: No optimization or debug flags set here
 37   ifeq ($(call isBuildOs, linux), true)
 38     ADLC_CFLAGS := -fno-exceptions -DLINUX
 39   else ifeq ($(call isBuildOs, aix), true)
 40     ifeq ($(TOOLCHAIN_TYPE), clang)
 41       ADLC_LDFLAGS += -m64
 42       ADLC_CFLAGS := -fno-rtti -fexceptions -ffunction-sections -m64 -DAIX -mcpu=pwr8
 43     else
 44       ADLC_LDFLAGS += -q64
 45       ADLC_CFLAGS := -qnortti -qeh -q64 -DAIX
 46     endif
 47   else ifeq ($(call isBuildOs, windows), true)
 48     ADLC_LDFLAGS += -nologo
 49     ADLC_CFLAGS := -nologo -EHsc
 50     ADLC_CFLAGS_WARNINGS := -W3 -D_CRT_SECURE_NO_WARNINGS
 51   endif
 52 
 53   # Set the C++ standard
 54   ADLC_CFLAGS += $(ADLC_LANGSTD_CXXFLAGS)
 55 
 56   # NOTE: The old build didn't set -DASSERT for windows but it doesn't seem to
 57   # hurt.
 58   ADLC_CFLAGS += -DASSERT
 59 
 60   ADLC_CFLAGS += -D$(HOTSPOT_TARGET_CPU_DEFINE)
 61 
 62   ADLC_CFLAGS += -I$(TOPDIR)/src/hotspot/share
 63 
 64   # Add file macro mappings
 65   ADLC_CFLAGS += $(FILE_MACRO_CFLAGS) $(REPRODUCIBLE_CFLAGS)
 66 
 67   ifeq ($(UBSAN_ENABLED), true)
 68     ADLC_CFLAGS += $(UBSAN_CFLAGS)
 69     ADLC_LDFLAGS += $(UBSAN_LDFLAGS)
 70   endif
 71 
 72   $(eval $(call SetupNativeCompilation, BUILD_ADLC, \
 73       NAME := adlc, \
 74       TYPE := EXECUTABLE, \
< prev index next >