Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8264650: Cross-compilation to macos/aarch64
Reviewed-by: erikj
  • Loading branch information
AntonKozlov authored and Vladimir Kempik committed Apr 5, 2021
1 parent 0039c18 commit 7f9ece2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions make/autoconf/flags.m4
Expand Up @@ -265,6 +265,14 @@ AC_DEFUN_ONCE([FLAGS_PRE_TOOLCHAIN],
fi
fi
if test "x$OPENJDK_TARGET_OS" = xmacosx; then
if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
MACHINE_FLAG="$MACHINE_FLAG -arch arm64"
elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
MACHINE_FLAG="$MACHINE_FLAG -arch x86_64"
fi
fi
# FIXME: global flags are not used yet...
# The "global" flags will *always* be set. Without them, it is not possible to
# get a working compilation.
Expand Down

3 comments on commit 7f9ece2

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@VladimirKempik
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/backport jdk11u-dev

@openjdk
Copy link

@openjdk openjdk bot commented on 7f9ece2 Feb 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@VladimirKempik the backport was successfully created on the branch VladimirKempik-backport-7f9ece23 in my personal fork of openjdk/jdk11u-dev. To create a pull request with this backport targeting openjdk/jdk11u-dev:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

This pull request contains a backport of commit 7f9ece23 from the openjdk/jdk repository.

The commit being backported was authored by Anton Kozlov on 5 Apr 2021 and was reviewed by Erik Joelsson.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk11u-dev:

$ git fetch https://github.com/openjdk-bots/jdk11u-dev VladimirKempik-backport-7f9ece23:VladimirKempik-backport-7f9ece23
$ git checkout VladimirKempik-backport-7f9ece23
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk11u-dev VladimirKempik-backport-7f9ece23

Please sign in to comment.