summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/bazel/package.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/bazel/package.py b/var/spack/repos/builtin/packages/bazel/package.py
index 1ea1a6ce9c..e9509e990b 100644
--- a/var/spack/repos/builtin/packages/bazel/package.py
+++ b/var/spack/repos/builtin/packages/bazel/package.py
@@ -4,6 +4,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
+import platform
class Bazel(Package):
@@ -90,7 +91,10 @@ class Bazel(Package):
# Until https://github.com/spack/spack/issues/14058 is fixed, use jdk to build bazel
# Strict dependency on java@8 as per
# https://docs.bazel.build/versions/master/install-compile-source.html#bootstrap-unix-prereq
- depends_on('jdk@1.8.0:1.8.999', type=('build', 'run'))
+ if platform.machine() == 'aarch64':
+ depends_on('java@8:8.999', type=('build', 'run'))
+ else:
+ depends_on('jdk@1.8.0:1.8.999', type=('build', 'run'))
depends_on('python', type=('build', 'run'))
depends_on('zip', type=('build', 'run'))