< prev index next >

make/hotspot/gensrc/GensrcAdlc.gmk

Print this page

        

*** 32,51 **** ############################################################################## # Build the ad compiler (the adlc build tool) # Flags depending on the build platform/tool chain # NOTE: No optimization or debug flags set here ! ifeq ($(OPENJDK_BUILD_OS), linux) ADLC_CFLAGS := -fno-exceptions -DLINUX ! else ifeq ($(OPENJDK_BUILD_OS), solaris) ADLC_LDFLAGS := -m64 ADLC_CFLAGS := -m64 ADLC_CFLAGS_WARNINGS := +w ! else ifeq ($(OPENJDK_BUILD_OS), aix) ADLC_LDFLAGS := -q64 ADLC_CFLAGS := -qnortti -qeh -q64 -DAIX ! else ifeq ($(OPENJDK_BUILD_OS), windows) ADLC_LDFLAGS := -nologo ADLC_CFLAGS := -nologo -EHsc # NOTE: The old build also have -D_CRT_SECURE_NO_DEPRECATE but it doesn't # seem needed any more. ADLC_CFLAGS_WARNINGS := -W3 -D_CRT_SECURE_NO_WARNINGS --- 32,51 ---- ############################################################################## # Build the ad compiler (the adlc build tool) # Flags depending on the build platform/tool chain # NOTE: No optimization or debug flags set here ! ifeq ($(call isBuildOs, linux), true) ADLC_CFLAGS := -fno-exceptions -DLINUX ! else ifeq ($(call isBuildOs, solaris), true) ADLC_LDFLAGS := -m64 ADLC_CFLAGS := -m64 ADLC_CFLAGS_WARNINGS := +w ! else ifeq ($(call isBuildOs, aix), true) ADLC_LDFLAGS := -q64 ADLC_CFLAGS := -qnortti -qeh -q64 -DAIX ! else ifeq ($(call isBuildOs, windows), true) ADLC_LDFLAGS := -nologo ADLC_CFLAGS := -nologo -EHsc # NOTE: The old build also have -D_CRT_SECURE_NO_DEPRECATE but it doesn't # seem needed any more. ADLC_CFLAGS_WARNINGS := -W3 -D_CRT_SECURE_NO_WARNINGS
*** 85,105 **** # Setup flags for the adlc build tool (ADLCFLAGS). ADLCFLAGS += -q -T # ADLC flags depending on target OS ! ifeq ($(OPENJDK_TARGET_OS), linux) ADLCFLAGS += -DLINUX=1 -D_GNU_SOURCE=1 ! else ifeq ($(OPENJDK_TARGET_OS), solaris) ADLCFLAGS += -DSOLARIS=1 -DSPARC_WORKS=1 ! else ifeq ($(OPENJDK_TARGET_OS), aix) ADLCFLAGS += -DAIX=1 ! else ifeq ($(OPENJDK_TARGET_OS), macosx) ADLCFLAGS += -D_ALLBSD_SOURCE=1 -D_GNU_SOURCE=1 endif ! ifneq ($(OPENJDK_TARGET_OS), windows) # NOTE: Windows adlc flags was different in the old build. Is this really # correct? # -g makes #line directives in the generated C++ files. ADLCFLAGS += -g --- 85,105 ---- # Setup flags for the adlc build tool (ADLCFLAGS). ADLCFLAGS += -q -T # ADLC flags depending on target OS ! ifeq ($(call isTargetOs, linux), true) ADLCFLAGS += -DLINUX=1 -D_GNU_SOURCE=1 ! else ifeq ($(call isTargetOs, solaris), true) ADLCFLAGS += -DSOLARIS=1 -DSPARC_WORKS=1 ! else ifeq ($(call isTargetOs, aix), true) ADLCFLAGS += -DAIX=1 ! else ifeq ($(call isTargetOs, macosx), true) ADLCFLAGS += -D_ALLBSD_SOURCE=1 -D_GNU_SOURCE=1 endif ! ifneq ($(call isTargetOs, windows), true) # NOTE: Windows adlc flags was different in the old build. Is this really # correct? # -g makes #line directives in the generated C++ files. ADLCFLAGS += -g
*** 107,117 **** ADLCFLAGS += -D$(HOTSPOT_TARGET_CPU_DEFINE)=1 endif # This generates checks in the generated C++ files that _LP64 is correctly # (un)defined when compiling them. ! ifeq ($(OPENJDK_TARGET_CPU_BITS), 64) ADLCFLAGS += -D_LP64=1 else ADLCFLAGS += -U_LP64 endif --- 107,117 ---- ADLCFLAGS += -D$(HOTSPOT_TARGET_CPU_DEFINE)=1 endif # This generates checks in the generated C++ files that _LP64 is correctly # (un)defined when compiling them. ! ifeq ($(call isTargetCpuBits, 64), true) ADLCFLAGS += -D_LP64=1 else ADLCFLAGS += -U_LP64 endif
< prev index next >