[libcxx-commits] [PATCH] D150252: [libunwind][CMake] Add cached compile and link flags to libunwind
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed May 10 09:12:09 PDT 2023
ldionne added inline comments.
================
Comment at: libunwind/CMakeLists.txt:159-160
+# Configure target flags
+add_compile_flags("${LIBUNWIND_ADDITIONAL_COMPILE_FLAGS}")
+add_library_flags("${LIBUNWIND_ADDITIONAL_LIBRARIES}")
+
----------------
Could you instead do `target_compile_options(${target} PUBLIC "${LIBUNWIND_ADDITIONAL_COMPILE_FLAGS}")` in `libunwind/src` for `unwind_static` and `unwind_shared`? And `target_link_libraries(${target} PUBLIC "${LIBUNWIND_ADDITIONAL_LIBRARIES}")` for the libraries part.
We're trying to move away from global functions like `add_compile_flags` and `add_library_flags`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150252/new/
https://reviews.llvm.org/D150252
More information about the libcxx-commits
mailing list