[llvm] 2dd0edf - [LLVM] Remove leftover unnecessary CMake for GPU runtimes

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 20 07:07:00 PDT 2025


Author: Joseph Huber
Date: 2025-09-20T09:06:48-05:00
New Revision: 2dd0edf2d8593a979421f0ab6575e76a37671459

URL: https://github.com/llvm/llvm-project/commit/2dd0edf2d8593a979421f0ab6575e76a37671459
DIFF: https://github.com/llvm/llvm-project/commit/2dd0edf2d8593a979421f0ab6575e76a37671459.diff

LOG: [LLVM] Remove leftover unnecessary CMake for GPU runtimes

Summary:
This somehow snuck back in.

Added: 
    

Modified: 
    llvm/cmake/modules/HandleLLVMOptions.cmake

Removed: 
    


################################################################################
diff  --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
index 7e10baea90e8a..8eca29f8a03f5 100644
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -144,14 +144,6 @@ if( LLVM_ENABLE_ASSERTIONS )
   endif()
 endif()
 
-# If we are targeting a GPU architecture in a runtimes build we want to ignore
-# all the standard flag handling.
-if("${LLVM_RUNTIMES_TARGET}" MATCHES "^amdgcn" OR
-   "${LLVM_RUNTIMES_TARGET}" MATCHES "^nvptx64")
-  return()
-endif()
-
-
 if(LLVM_ENABLE_EXPENSIVE_CHECKS)
   # When LLVM_ENABLE_EXPENSIVE_CHECKS is ON, LLVM will intercept errors
   # using assert(). An explicit check is performed here.


        


More information about the llvm-commits mailing list