r-v8: Fix build error (#22314)

This commit is contained in:
Tomoyasu Nojiri 2021-03-17 09:39:30 +09:00 committed by GitHub
parent b75b029706
commit 857f6392a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')