llvm-amdgpu: support building on aarch64 (#47124)

* llvm-amdgpu: support building on aarch64

* missed removing a line
This commit is contained in:
Andrew W Elble 2024-10-23 16:39:45 -04:00 committed by GitHub
parent 1472dcace4
commit 6320993409
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -222,12 +222,16 @@ def cmake_args(self):
self.define("LIBCXXABI_ENABLE_STATIC", "ON"),
self.define("LIBCXXABI_INSTALL_STATIC_LIBRARY", "OFF"),
self.define("LLVM_ENABLE_RTTI", "ON"),
self.define("LLVM_TARGETS_TO_BUILD", "AMDGPU;X86"),
self.define("LLVM_AMDGPU_ALLOW_NPI_TARGETS", "ON"),
self.define("PACKAGE_VENDOR", "AMD"),
self.define("CLANG_ENABLE_AMDCLANG", "ON"),
]
if self.spec.target.family == "aarch64":
args.append(self.define("LLVM_TARGETS_TO_BUILD", "AMDGPU;AArch64"))
else:
args.append(self.define("LLVM_TARGETS_TO_BUILD", "AMDGPU;X86"))
# Enable rocm-device-libs as a external project
if self.spec.satisfies("+rocm-device-libs"):
if self.spec.satisfies("@:6.0"):