diff options
author | Chris Bieneman <beanz@apple.com> | 2015-08-27 18:27:33 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2015-08-27 18:27:33 +0000 |
commit | 69c3a3e9ad75c1ed2c5998327ba4e13d089582b4 (patch) | |
tree | 52caeb8ebbd0653048ddf1eb3563e4f590f131f5 /cmake/Modules/SanitizerUtils.cmake | |
parent | 215008d81633800bae1f4aa33f745a6cdbdaac02 (diff) |
[CMake] Add PARENT_TARGET option to add_sanitizer_rt_symbols.
Summary: This is another step in a multi-step refactoring to move add_sanitizer_rt_symbols in the direction of other add_* functions in compiler-rt.
Reviewers: filcab, bogner, kubabrecka, zaks.anna, glider, samsonov
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D12409
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@246178 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/Modules/SanitizerUtils.cmake')
-rw-r--r-- | cmake/Modules/SanitizerUtils.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/Modules/SanitizerUtils.cmake b/cmake/Modules/SanitizerUtils.cmake index 56f53a8ad..96e9ab441 100644 --- a/cmake/Modules/SanitizerUtils.cmake +++ b/cmake/Modules/SanitizerUtils.cmake @@ -9,11 +9,12 @@ set(SANITIZER_LINT_SCRIPT # interceptors are exported automatically, user can also provide files with # symbol names that should be exported as well. # add_sanitizer_rt_symbols(<name> +# PARENT_TARGET <convenience parent target> # EXTRA <files with extra symbols to export>) macro(add_sanitizer_rt_symbols name) cmake_parse_arguments(ARG "" - "" + "PARENT_TARGET" "EXTRA" ${ARGN}) set(stamp ${CMAKE_CURRENT_BINARY_DIR}/${name}.syms-stamp) @@ -50,6 +51,9 @@ macro(add_sanitizer_rt_symbols name) install(FILES ${libfile}.syms DESTINATION ${COMPILER_RT_LIBRARY_INSTALL_DIR}) endif() endif() + if(ARG_PARENT_TARGET) + add_dependencies(${ARG_PARENT_TARGET} ${name}-symbols) + endif() endmacro() macro(add_sanitizer_rt_version_list name) |