mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-16 05:53:25 +00:00
21 lines
917 B
Diff
21 lines
917 B
Diff
https://reviews.llvm.org/D143017
|
|
|
|
[Libomptarget] Fix disabling amdgpu on non-Linux.
|
|
|
|
Previously, on non-Linux, amdgpu would get enabled whatever the CPU
|
|
architecture.
|
|
|
|
Index: llvm-toolchain-15-15.0.7/openmp/libomptarget/plugins/amdgpu/CMakeLists.txt
|
|
===================================================================
|
|
--- llvm-toolchain-15-15.0.7.orig/openmp/libomptarget/plugins/amdgpu/CMakeLists.txt
|
|
+++ llvm-toolchain-15-15.0.7/openmp/libomptarget/plugins/amdgpu/CMakeLists.txt
|
|
@@ -27,7 +27,7 @@ if(NOT LIBOMPTARGET_DEP_LIBELF_FOUND)
|
|
return()
|
|
endif()
|
|
|
|
-if(NOT CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(ppc64le)|(aarch64)$" AND CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|
+if(NOT (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(ppc64le)|(aarch64)$" AND CMAKE_SYSTEM_NAME MATCHES "Linux"))
|
|
libomptarget_say("Not building AMDGPU plugin: only support AMDGPU in Linux x86_64, ppc64le, or aarch64 hosts")
|
|
return()
|
|
endif()
|