diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/llvm-amdgpu/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/llvm-amdgpu/package.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/llvm-amdgpu/package.py b/var/spack/repos/builtin/packages/llvm-amdgpu/package.py index 10893376ad..ab329bd23b 100644 --- a/var/spack/repos/builtin/packages/llvm-amdgpu/package.py +++ b/var/spack/repos/builtin/packages/llvm-amdgpu/package.py @@ -72,10 +72,6 @@ class LlvmAmdgpu(CMakePackage): # This is already fixed in upstream but not in 4.2.0 rocm release patch('fix-spack-detection-4.2.0.patch', when='@4.2.0:') - # Add LLVM_VERSION_SUFFIX - # https://reviews.llvm.org/D115818 - patch('llvm-version-suffix-macro.patch', when='@:4.3.2') - conflicts('^cmake@3.19.0') root_cmakelists_dir = 'llvm' @@ -112,6 +108,12 @@ class LlvmAmdgpu(CMakePackage): when='@master +rocm-device-libs' ) + def setup_dependent_build_environment(self, env, dependent_spec): + # LLVM-amdgpu is always based off of a pre-release version of LLVM. + # Set the version suffix to denote this fact for downstream projects. + env.append_flags('CXXFLAGS', '-DLLVM_VERSION_SUFFIX=git') + env.append_flags('CFLAGS', '-DLLVM_VERSION_SUFFIX=git') + def cmake_args(self): llvm_projects = [ 'clang', |