Skip to content

Commit

Permalink
[cmake] Install rr_commands.py into share/cilksan.
Browse files Browse the repository at this point in the history
  • Loading branch information
neboat committed Sep 5, 2021
1 parent 0dba53a commit b949786
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions cilksan/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ set(CILKSAN_SOURCES
locking.cpp
print_addr.cpp)

set(CILKSAN_RR_FILES
rr_commands.py)

include_directories(${CILKTOOLS_SOURCE_DIR}/include)

set(CILKSAN_CFLAGS ${SANITIZER_COMMON_CFLAGS})
Expand Down Expand Up @@ -123,3 +126,16 @@ endif()
if (CILKTOOLS_INCLUDE_TESTS)
# TODO: add tests
endif()

foreach (file ${CILKSAN_RR_FILES})
install(PROGRAMS ${file}
DESTINATION share/cilksan
COMPONENT cilksan-rr)
endforeach (file)

add_custom_target(cilksan-rr DEPENDS ${CILKSAN_RR_FILES})
if(NOT LLVM_ENABLE_IDE)
add_llvm_install_targets("install-cilksan-rr"
DEPENDS cilksan-rr
COMPONENT cilksan-rr)
endif()

0 comments on commit b949786

Please sign in to comment.