Add flags allowing to use compile flags and libraries provided in cache with libunwind.
Similar flags are already present in libc++ and libc++abi CMakeLists files.
Details
Details
- Reviewers
phosek - Group Reviewers
Restricted Project - Commits
- rG9e37142dc12a: [libunwind] Add cached compile and link flags to libunwind
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libunwind/CMakeLists.txt | ||
---|---|---|
159–160 | 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. |
Comment Actions
Moved flag and libs addition to libunwind/src
libunwind/CMakeLists.txt | ||
---|---|---|
159–160 | Sure, I moved flag and libs addition. |
Comment Actions
I don't have commit access, can you please land this for me? Please use Maciej Grzywacz maciej.grzywacz@intel.com for the commit :)
Comment Actions
Hi @phosek, could You land this change for me? This is my first change and I don't have commit access yet :)
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.