[llvm] [CMake] Support per-target linker flags (PR #68393)

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 16 23:36:41 PDT 2023


================
@@ -1524,6 +1528,13 @@ macro(add_llvm_tool_subdirectory name)
   add_llvm_external_project(${name})
 endmacro(add_llvm_tool_subdirectory)
 
+macro(add_custom_linker_flags name)
+  if (LLVM_${name}_LINKER_FLAGS)
+    message(STATUS "Applying ${LLVM_${name}_LINKER_FLAGS} to ${name}")
----------------
petrhosek wrote:

I'd omit this to avoid the extra build spam (or make it optional).

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


More information about the llvm-commits mailing list