[llvm] [CMake] Support per-target linker flags (PR #68393)
Vincent Lee via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 18 11:43:08 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:
https://github.com/llvm/llvm-project/pull/69497
https://github.com/llvm/llvm-project/pull/68393
More information about the llvm-commits
mailing list