Skip to content

Commit ac6f9a7

Browse files
committed
Reland "[MemProf] Add missing header to list of installed headers. (#79413)"
This reland commit 0a3b5ec with fix.
1 parent f174648 commit ac6f9a7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

compiler-rt/include/CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ if (COMPILER_RT_BUILD_MEMPROF)
2525
sanitizer/memprof_interface.h
2626
profile/MemProfData.inc
2727
)
28+
if (NOT COMPILER_RT_BUILD_SANITIZERS)
29+
set(MEMPROF_HEADERS
30+
${MEMPROF_HEADERS}
31+
sanitizer/allocator_interface.h
32+
sanitizer/common_interface_defs.h
33+
)
34+
endif()
2835
endif(COMPILER_RT_BUILD_MEMPROF)
2936

3037
if (COMPILER_RT_BUILD_XRAY)
@@ -90,6 +97,12 @@ if (COMPILER_RT_BUILD_MEMPROF)
9097
COMPONENT compiler-rt-headers
9198
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
9299
DESTINATION ${COMPILER_RT_INSTALL_INCLUDE_DIR}/sanitizer)
100+
if (NOT COMPILER_RT_BUILD_SANITIZERS)
101+
install(FILES sanitizer/allocator_interface.h sanitizer/common_interface_defs.h
102+
COMPONENT compiler-rt-headers
103+
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
104+
DESTINATION ${COMPILER_RT_INSTALL_INCLUDE_DIR}/sanitizer)
105+
endif()
93106
endif(COMPILER_RT_BUILD_MEMPROF)
94107
# Install xray headers.
95108
install(FILES ${XRAY_HEADERS}

0 commit comments

Comments
 (0)