diff --git a/var/spack/repos/builtin/packages/llvm-amdgpu/package.py b/var/spack/repos/builtin/packages/llvm-amdgpu/package.py index fd451f796c6fba..0c9f5987a05d68 100644 --- a/var/spack/repos/builtin/packages/llvm-amdgpu/package.py +++ b/var/spack/repos/builtin/packages/llvm-amdgpu/package.py @@ -75,6 +75,11 @@ class LlvmAmdgpu(CMakePackage, CompilerPackage): depends_on("ncurses+termlib", type="link") depends_on("pkgconfig", type="build") + # This flavour of LLVM doesn't work on MacOS, so we should ensure that it + # isn't used to satisfy any of the libllvm dependencies on the Darwin + # platform. + conflicts("platform=darwin") + # OpenMP clang toolchain looks for bitcode files in llvm/bin/../lib # as per 5.2.0 llvm code. It used to be llvm/bin/../lib/libdevice. # Below patch is to look in the old path.