summaryrefslogtreecommitdiff
path: root/flang-rt
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2025-09-19 13:09:52 -0500
committerGitHub <noreply@github.com>2025-09-19 13:09:52 -0500
commit2d503b924c324f7f67ef8b1f5c518c1f80a2825b (patch)
tree710a60370582a4bc31a375f89dbb8ed8304e9b95 /flang-rt
parent8fcb712167fa809af9bec2ffcfe1ac1b8c5e4aa6 (diff)
[LLVM] Simplify GPU runtimes flag handling (#159802)
Summary: The AMDGPU hack can be removed, and we no longer need to skip 90% of the `HandleLLVMOptions` if we work around NVPTX earlier. Simplifies the interface by removing duplicated logic and keeps the GPU targets from being weirdly divergent on some flags.
Diffstat (limited to 'flang-rt')
-rw-r--r--flang-rt/CMakeLists.txt9
1 files changed, 0 insertions, 9 deletions
diff --git a/flang-rt/CMakeLists.txt b/flang-rt/CMakeLists.txt
index a45a66be6f83..cad39d0c7101 100644
--- a/flang-rt/CMakeLists.txt
+++ b/flang-rt/CMakeLists.txt
@@ -221,15 +221,6 @@ endif()
# System Introspection #
########################
-# The GPU targets require a few mandatory arguments to make the standard CMake
-# check flags happy.
-if ("${LLVM_RUNTIMES_TARGET}" MATCHES "^amdgcn")
- set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -nogpulib")
-elseif ("${LLVM_RUNTIMES_TARGET}" MATCHES "^nvptx")
- set(CMAKE_REQUIRED_FLAGS
- "${CMAKE_REQUIRED_FLAGS} -flto -c -Wno-unused-command-line-argument")
-endif()
-
include(CheckCXXSymbolExists)
include(CheckCXXSourceCompiles)
check_cxx_symbol_exists(strerror_r string.h HAVE_STRERROR_R)