[llvm] [Offload] Fix cmake warning (PR #145488)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 24 02:49:04 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-offload

Author: Ross Brunton (RossBrunton)

<details>
<summary>Changes</summary>

Cmake was unhappy that there was no space between arguments, now it
is.


---
Full diff: https://github.com/llvm/llvm-project/pull/145488.diff


1 Files Affected:

- (modified) offload/DeviceRTL/CMakeLists.txt (+1-1) 


``````````diff
diff --git a/offload/DeviceRTL/CMakeLists.txt b/offload/DeviceRTL/CMakeLists.txt
index 4dd0daede80bd..e4916f4d49755 100644
--- a/offload/DeviceRTL/CMakeLists.txt
+++ b/offload/DeviceRTL/CMakeLists.txt
@@ -156,7 +156,7 @@ function(compileDeviceRTLLibrary target_name target_triple)
   )
   target_link_libraries(omptarget.${target_name} PRIVATE omptarget.${target_name}.all_objs)
   target_link_options(omptarget.${target_name} PRIVATE "--target=${target_triple}"
-                      "-Wno-unused-command-line-argument""-r" "-nostdlib" "-flto"
+                      "-Wno-unused-command-line-argument" "-r" "-nostdlib" "-flto"
                        "-Wl,--lto-emit-llvm" "-fuse-ld=lld" "-march=" "-mcpu=")
 
   install(TARGETS omptarget.${target_name}

``````````

</details>


https://github.com/llvm/llvm-project/pull/145488


More information about the llvm-commits mailing list