Skip to content

Commit

Permalink
build: support ppc64le with wasm (#13657)
Browse files Browse the repository at this point in the history
The build has only been tested with gn git sha 5da62d5 as
recommended by ppc64 maintainers of the v8 runtime.

Signed-off-by: Christopher M. Luciano <[email protected]>
  • Loading branch information
cmluciano authored Oct 20, 2020
1 parent d043a1d commit c82a518
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions bazel/external/wee8.genrule_cmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

set -e

# This works only on Linux-{x86_64,s390x,aarch64} and macOS-x86_64.
# This works only on Linux-{x86_64,s390x,aarch64,ppc64le} and macOS-x86_64.
case "$$(uname -s)-$$(uname -m)" in
Linux-x86_64|Linux-s390x|Linux-aarch64|Darwin-x86_64)
Linux-x86_64|Linux-s390x|Linux-aarch64|Linux-ppc64le|Darwin-x86_64)
;;
*)
echo "ERROR: wee8 is currently supported only on Linux-{x86_64,s390x,aarch64} and macOS-x86_64." >&2
echo "ERROR: wee8 is currently supported only on Linux-{x86_64,s390x,aarch64,ppc64le} and macOS-x86_64." >&2
exit 1
esac

Expand Down Expand Up @@ -88,6 +88,11 @@ WEE8_BUILD_ARGS+=" v8_enable_shared_ro_heap=false"
if [[ `uname -m` == "aarch64" ]]; then
WEE8_BUILD_ARGS+=" target_cpu=\"arm64\""
fi
# Support ppc64
# Only tests with gn 5da62d5
if [[ `uname -m` == "ppc64le" ]]; then
WEE8_BUILD_ARGS+=" target_cpu=\"ppc64\""
fi

# Build wee8.
if [[ -f /etc/centos-release ]] && [[ $$(cat /etc/centos-release) =~ "CentOS Linux release 7" ]] && [[ -x "$$(command -v gn)" ]]; then
Expand Down

0 comments on commit c82a518

Please sign in to comment.