Skip to content
This repository has been archived by the owner on Oct 22, 2020. It is now read-only.

Commit

Permalink
Add OSX support
Browse files Browse the repository at this point in the history
Fixes eclipse/openj9/36

Signed-off-by: Joe Dekoning <[email protected]>
  • Loading branch information
jdekonin committed Oct 10, 2017
1 parent a4765a5 commit 3482abc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
8 changes: 3 additions & 5 deletions closed/OpenJ9.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,8 @@ OPENJ9_MISC_FILES := \
OPENJ9_NOTICE_FILES := openj9-notices.html
OPENJ9_REDIRECTOR := redirector/$(LIBRARY_PREFIX)jvm_b156$(SHARED_LIBRARY_SUFFIX)

# we should try using the makeflags as defined by openjdk (issue 59)
NUMCPU := $(shell grep -c ^processor /proc/cpuinfo)
#$(info NUMCPU = $(NUMCPU))
override MAKEFLAGS := -j $(NUMCPU)
# openjdk makeflags don't work with openj9/omr native compiles; override with number of cpus which openj9 and omr need supplied
override MAKEFLAGS := -j $(JOBS)

# honour the --disable-warnings-as-errors configure parameter during compilation of OMR
ifeq (false,$(WARNINGS_AS_ERRORS))
Expand Down Expand Up @@ -213,7 +211,7 @@ OPENJ9_VERSION_VARS := \
#

OPENJ9_VERSION_SCRIPT := \
$(foreach var,$(OPENJ9_VERSION_VARS),-e 's:@${var}@:$(value $(var)):g')
$(foreach var,$(OPENJ9_VERSION_VARS),-e 's|@${var}@|$(value $(var))|g')

$(OUTPUT_ROOT)/vm/util/openj9_version_info.h : $(SRC_ROOT)/closed/openj9_version_info.h.in
@$(MKDIR) -p $(@D)
Expand Down
3 changes: 3 additions & 0 deletions closed/autoconf/custom-hook.m4
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ AC_DEFUN_ONCE([OPENJ9_PLATFORM_SETUP],
elif test "x$OPENJDK_BUILD_OS" = xwindows; then
OPENJ9_PLATFORM_CODE=wa64
OPENJ9_BUILDSPEC="win_x86-64_cmprssptrs"
elif test "x$OPENJDK_BUILD_OS" = xmacosx; then
OPENJ9_PLATFORM_CODE=oa64
OPENJ9_BUILDSPEC="osx_x86-64"
else
AC_MSG_ERROR([Unsupported OpenJ9 platform ${OPENJDK_BUILD_OS}, contact support team!])
fi
Expand Down
5 changes: 4 additions & 1 deletion closed/autoconf/generated-configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5245,7 +5245,7 @@ VS_SDK_PLATFORM_NAME_2013=


# Do not change or remove the following line, it is needed for consistency checks:
DATE_WHEN_GENERATED=1506706543
DATE_WHEN_GENERATED=1507318859

###############################################################################
#
Expand Down Expand Up @@ -17133,6 +17133,9 @@ $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;}
elif test "x$OPENJDK_BUILD_OS" = xwindows; then
OPENJ9_PLATFORM_CODE=wa64
OPENJ9_BUILDSPEC="win_x86-64_cmprssptrs"
elif test "x$OPENJDK_BUILD_OS" = xmacosx; then
OPENJ9_PLATFORM_CODE=oa64
OPENJ9_BUILDSPEC="osx_x86-64"
else
as_fn_error $? "Unsupported OpenJ9 platform ${OPENJDK_BUILD_OS}, contact support team!" "$LINENO" 5
fi
Expand Down
2 changes: 1 addition & 1 deletion common/autoconf/generated-configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5186,7 +5186,7 @@ VS_SDK_PLATFORM_NAME_2013=
#CUSTOM_AUTOCONF_INCLUDE

# Do not change or remove the following line, it is needed for consistency checks:
DATE_WHEN_GENERATED=1506706543
DATE_WHEN_GENERATED=1507318859

###############################################################################
#
Expand Down

0 comments on commit 3482abc

Please sign in to comment.