[llvm] [CMake] Support per-target linker flags (PR #68393)
Vincent Lee via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 17 14:04:33 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}")
----------------
thevinster wrote:
I'm going to land this as is, and if this becomes very build spammy, we can figure out other approaches to disable it.
https://github.com/llvm/llvm-project/pull/68393
More information about the llvm-commits
mailing list