diff options
| author | Alexey Samsonov <samsonov@google.com> | 2013-05-21 13:48:27 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2013-05-21 13:48:27 +0000 |
| commit | c1caacee4245f4511b52a697b2ae300a1c53ddef (patch) | |
| tree | beaf8549b5fc67980aba34bf73f2a594cf6aa949 /cmake | |
| parent | 79367ad4c69cf832395ff0d2df647634c553683d (diff) | |
| download | compiler-rt-c1caacee4245f4511b52a697b2ae300a1c53ddef.tar.gz compiler-rt-c1caacee4245f4511b52a697b2ae300a1c53ddef.tar.bz2 compiler-rt-c1caacee4245f4511b52a697b2ae300a1c53ddef.tar.xz | |
[ASan] create default (empty) ASan blacklist file in resource directory
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182380 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
| -rw-r--r-- | cmake/Modules/AddCompilerRT.cmake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cmake/Modules/AddCompilerRT.cmake b/cmake/Modules/AddCompilerRT.cmake index c261d104..bf114a40 100644 --- a/cmake/Modules/AddCompilerRT.cmake +++ b/cmake/Modules/AddCompilerRT.cmake @@ -129,3 +129,13 @@ macro(add_compiler_rt_test test_suite test_name) # Make the test suite depend on the binary. add_dependencies(${test_suite} ${test_name}) endmacro() + +macro(add_compiler_rt_resource_file target_name file_name) + set(src_file "${CMAKE_CURRENT_SOURCE_DIR}/${file_name}") + set(dst_file "${CLANG_RESOURCE_DIR}/${file_name}") + add_custom_target(${target_name} + COMMAND ${CMAKE_COMMAND} -E copy_if_different ${src_file} ${dst_file} + DEPENDS ${file_name}) + # Install in Clang resource directory. + install(FILES ${file_name} DESTINATION ${LIBCLANG_INSTALL_PATH}) +endmacro() |
