summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTomoyasu Nojiri <68096132+t-nojiri@users.noreply.github.com>2021-03-17 09:39:30 +0900
committerGitHub <noreply@github.com>2021-03-16 19:39:30 -0500
commit857f6392a2317915006cf984b71cdb2c4cdaa777 (patch)
tree133e785e6ca592a616827691475ff1293d9d5c34 /var
parentb75b0297068339614fbecaef6fe94a40e970d5c0 (diff)
downloadspack-857f6392a2317915006cf984b71cdb2c4cdaa777.tar.gz
spack-857f6392a2317915006cf984b71cdb2c4cdaa777.tar.bz2
spack-857f6392a2317915006cf984b71cdb2c4cdaa777.tar.xz
spack-857f6392a2317915006cf984b71cdb2c4cdaa777.zip
r-v8: Fix build error (#22314)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/r-v8/package.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/r-v8/package.py b/var/spack/repos/builtin/packages/r-v8/package.py
index 5fc3b136f5..c57a192f61 100644
--- a/var/spack/repos/builtin/packages/r-v8/package.py
+++ b/var/spack/repos/builtin/packages/r-v8/package.py
@@ -18,3 +18,11 @@ class RV8(RPackage):
depends_on('r-curl@1.0:', type=('build', 'run'))
depends_on('r-jsonlite@1.0:', type=('build', 'run'))
depends_on('r-rcpp@0.12.12:', type=('build', 'run'))
+
+ conflicts('@3.4.0', when='target=aarch64:')
+
+ def setup_build_environment(self, env):
+ spec = self.spec
+ if ((spec.platform == 'darwin') or
+ (spec.platform == 'linux' and spec.target.family == 'x86_64')):
+ env.append_flags('DOWNLOAD_STATIC_LIBV8', '1')