bazel: support for aarch64 platform (#16350)
This commit is contained in:
parent
a1e03151b2
commit
48de131b08
@ -4,6 +4,7 @@
|
|||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
from spack import *
|
from spack import *
|
||||||
|
import platform
|
||||||
|
|
||||||
|
|
||||||
class Bazel(Package):
|
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
|
# Until https://github.com/spack/spack/issues/14058 is fixed, use jdk to build bazel
|
||||||
# Strict dependency on java@8 as per
|
# Strict dependency on java@8 as per
|
||||||
# https://docs.bazel.build/versions/master/install-compile-source.html#bootstrap-unix-prereq
|
# 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('python', type=('build', 'run'))
|
||||||
depends_on('zip', type=('build', 'run'))
|
depends_on('zip', type=('build', 'run'))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user