Skip to content

[lldb/cmake] Remove a no-op statement #141063

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
May 23, 2025
Merged

[lldb/cmake] Remove a no-op statement #141063

merged 1 commit into from
May 23, 2025

Conversation

labath
Copy link
Collaborator

@labath labath commented May 22, 2025

Like the comment says, this really is a no-op and has no effect on the generated build commands.

Like the comment says, this really is a no-op and has no offect on the
generated build commants.
@labath labath requested a review from JDevlieghere as a code owner May 22, 2025 13:08
@llvmbot llvmbot added the lldb label May 22, 2025
@llvmbot
Copy link
Member

llvmbot commented May 22, 2025

@llvm/pr-subscribers-lldb

Author: Pavel Labath (labath)

Changes

Like the comment says, this really is a no-op and has no offect on the generated build commants.


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

1 Files Affected:

  • (modified) lldb/cmake/modules/AddLLDB.cmake (-7)
diff --git a/lldb/cmake/modules/AddLLDB.cmake b/lldb/cmake/modules/AddLLDB.cmake
index 0a81ec5092185..41f9b28a0ab39 100644
--- a/lldb/cmake/modules/AddLLDB.cmake
+++ b/lldb/cmake/modules/AddLLDB.cmake
@@ -93,13 +93,6 @@ function(add_lldb_library name)
     set(libkind STATIC)
   endif()
 
-  #PIC not needed on Win
-  # FIXME: Setting CMAKE_CXX_FLAGS here is a no-op, use target_compile_options
-  # or omit this logic instead.
-  if (NOT WIN32)
-    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
-  endif()
-
   if (PARAM_OBJECT)
     add_library(${name} ${libkind} ${srcs})
   else()

Copy link
Collaborator

@DavidSpickett DavidSpickett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@labath labath merged commit f1cf168 into llvm:main May 23, 2025
12 checks passed
@labath labath deleted the cmake branch May 23, 2025 07:23
sivan-shani pushed a commit to sivan-shani/llvm-project that referenced this pull request Jun 3, 2025
Like the comment says, this really is a no-op and has no effect on the
generated build commands.
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.

4 participants