forked from OSchip/llvm-project
[memprof] Respect COMPILER_RT_BUILD_MEMPROF when install memprof headers
When COMPILER_RT_BUILD_MEMPROF is disabled, the memprof headers should not be installed. Reviewed By: mgorny, tejohnson Differential Revision: https://reviews.llvm.org/D136550
This commit is contained in:
parent
1d31ea68c0
commit
345b0587a3
|
@ -84,10 +84,12 @@ install(FILES ${FUZZER_HEADERS}
|
||||||
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
||||||
DESTINATION ${COMPILER_RT_INSTALL_INCLUDE_DIR}/fuzzer)
|
DESTINATION ${COMPILER_RT_INSTALL_INCLUDE_DIR}/fuzzer)
|
||||||
# Install memprof headers.
|
# Install memprof headers.
|
||||||
install(FILES sanitizer/memprof_interface.h
|
if (COMPILER_RT_BUILD_MEMPROF)
|
||||||
COMPONENT compiler-rt-headers
|
install(FILES sanitizer/memprof_interface.h
|
||||||
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
COMPONENT compiler-rt-headers
|
||||||
DESTINATION ${COMPILER_RT_INSTALL_INCLUDE_DIR}/sanitizer)
|
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
||||||
|
DESTINATION ${COMPILER_RT_INSTALL_INCLUDE_DIR}/sanitizer)
|
||||||
|
endif(COMPILER_RT_BUILD_MEMPROF)
|
||||||
# Install xray headers.
|
# Install xray headers.
|
||||||
install(FILES ${XRAY_HEADERS}
|
install(FILES ${XRAY_HEADERS}
|
||||||
COMPONENT compiler-rt-headers
|
COMPONENT compiler-rt-headers
|
||||||
|
|
Loading…
Reference in New Issue