From 7f2be62ff2a91becd1bdd832e723d8ae170779d6 Mon Sep 17 00:00:00 2001 From: Mikael Simberg Date: Wed, 12 Jul 2023 13:38:57 +0200 Subject: Add conflict for hpx on ARM (#38812) HPX requires use of Boost.Context on ARM. --- var/spack/repos/builtin/packages/hpx/package.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/var/spack/repos/builtin/packages/hpx/package.py b/var/spack/repos/builtin/packages/hpx/package.py index f28360c2f6..15a0f9961a 100644 --- a/var/spack/repos/builtin/packages/hpx/package.py +++ b/var/spack/repos/builtin/packages/hpx/package.py @@ -195,8 +195,13 @@ class Hpx(CMakePackage, CudaPackage, ROCmPackage): # https://github.com/spack/spack/pull/17654 # https://github.com/STEllAR-GROUP/hpx/issues/4829 depends_on("boost+context", when="+generic_coroutines") - _msg_generic_coroutines = "This platform requires +generic_coroutines" - conflicts("~generic_coroutines", when="platform=darwin", msg=_msg_generic_coroutines) + + _msg_generic_coroutines_platform = "This platform requires +generic_coroutines" + conflicts("~generic_coroutines", when="platform=darwin", msg=_msg_generic_coroutines_platform) + + _msg_generic_coroutines_target = "This target requires +generic_coroutines" + conflicts("~generic_coroutines", when="target=aarch64:", msg=_msg_generic_coroutines_target) + conflicts("~generic_coroutines", when="target=arm:", msg=_msg_generic_coroutines_target) # Patches APEX patch("git_external.patch", when="@1.3.0 instrumentation=apex") -- cgit v1.2.3-60-g2f50