libclc: Don't pass linker flags to CLC/LLAsm

We don't want the regular linker flags for these invocations, since
we're not compiling to the target machine anyway. This fixes things like
'/machine:x64' being unknown when invoked under Windows.

reviewer: jvesely
Differential Revision: https://reviews.llvm.org/D77164
GitOrigin-RevId: cccdd0579b5027d0a21fd2dbc0a6a50330134976
diff --git a/cmake/CMakeCLCInformation.cmake b/cmake/CMakeCLCInformation.cmake
index dfbdda9..6eecf4e 100644
--- a/cmake/CMakeCLCInformation.cmake
+++ b/cmake/CMakeCLCInformation.cmake
@@ -5,7 +5,7 @@
 
 if(NOT CMAKE_CLC_CREATE_STATIC_LIBRARY)
   set(CMAKE_CLC_CREATE_STATIC_LIBRARY
-    "<CMAKE_CLC_ARCHIVE> <LINK_FLAGS> -o <TARGET> <OBJECTS>")
+    "<CMAKE_CLC_ARCHIVE> -o <TARGET> <OBJECTS>")
 endif()
 
 set(CMAKE_INCLUDE_FLAG_CLC "-I")
diff --git a/cmake/CMakeLLAsmInformation.cmake b/cmake/CMakeLLAsmInformation.cmake
index f1d013b..73fb28e 100644
--- a/cmake/CMakeLLAsmInformation.cmake
+++ b/cmake/CMakeLLAsmInformation.cmake
@@ -5,7 +5,7 @@
 
 if(NOT CMAKE_LLAsm_CREATE_STATIC_LIBRARY)
   set(CMAKE_LLAsm_CREATE_STATIC_LIBRARY
-    "<CMAKE_LLAsm_ARCHIVE> <LINK_FLAGS> -o <TARGET> <OBJECTS>")
+    "<CMAKE_LLAsm_ARCHIVE> -o <TARGET> <OBJECTS>")
 endif()
 
 set(CMAKE_INCLUDE_FLAG_LLAsm "-I")