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

Ross Brunton via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 24 02:48:31 PDT 2025


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

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


>From 3d7c711999f8498aa7793c81d3211d0611cddd9f Mon Sep 17 00:00:00 2001
From: Ross Brunton <ross at codeplay.com>
Date: Tue, 24 Jun 2025 10:47:06 +0100
Subject: [PATCH] [Offload] Fix cmake warning

Cmake was unhappy that there was no space between arguments, now it
is.
---
 offload/DeviceRTL/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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}



More information about the llvm-commits mailing list