Skip to content

[Offload] Fix cmake warning #145488

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2025
Merged

[Offload] Fix cmake warning #145488

merged 1 commit into from
Jun 24, 2025

Conversation

RossBrunton
Copy link
Contributor

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

Cmake was unhappy that there was no space between arguments, now it
is.
@RossBrunton RossBrunton requested a review from jhuber6 June 24, 2025 09:48
@llvmbot
Copy link
Member

llvmbot commented Jun 24, 2025

@llvm/pr-subscribers-offload

Author: Ross Brunton (RossBrunton)

Changes

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 --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}

@RossBrunton RossBrunton merged commit 4785832 into llvm:main Jun 24, 2025
9 checks passed
DrSergei pushed a commit to DrSergei/llvm-project that referenced this pull request Jun 24, 2025
Cmake was unhappy that there was no space between arguments, now it
is.
anthonyhatran pushed a commit to anthonyhatran/llvm-project that referenced this pull request Jun 26, 2025
Cmake was unhappy that there was no space between arguments, now it
is.
rlavaee pushed a commit to rlavaee/llvm-project that referenced this pull request Jul 1, 2025
Cmake was unhappy that there was no space between arguments, now it
is.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants