[compiler-rt] 30f6f2c - [memprof] Support installation of memprof headers
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 20 05:34:08 PDT 2022
Author: Enna1
Date: 2022-10-20T20:31:45+08:00
New Revision: 30f6f2c09d6f663c8d098a2791cfd3201f728ba9
URL: https://github.com/llvm/llvm-project/commit/30f6f2c09d6f663c8d098a2791cfd3201f728ba9
DIFF: https://github.com/llvm/llvm-project/commit/30f6f2c09d6f663c8d098a2791cfd3201f728ba9.diff
LOG: [memprof] Support installation of memprof headers
This change allows users manually calling memprof public C API (e.g. __memprof_profile_dump).
Reviewed By: tejohnson
Differential Revision: https://reviews.llvm.org/D136067
Added:
Modified:
compiler-rt/include/CMakeLists.txt
Removed:
################################################################################
diff --git a/compiler-rt/include/CMakeLists.txt b/compiler-rt/include/CMakeLists.txt
index 5968cfd0e6d2c..9fb8b0d8db970 100644
--- a/compiler-rt/include/CMakeLists.txt
+++ b/compiler-rt/include/CMakeLists.txt
@@ -83,6 +83,11 @@ install(FILES ${FUZZER_HEADERS}
COMPONENT compiler-rt-headers
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
DESTINATION ${COMPILER_RT_INSTALL_INCLUDE_DIR}/fuzzer)
+# Install memprof headers.
+install(FILES sanitizer/memprof_interface.h
+ COMPONENT compiler-rt-headers
+ PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
+ DESTINATION ${COMPILER_RT_INSTALL_INCLUDE_DIR}/sanitizer)
# Install xray headers.
install(FILES ${XRAY_HEADERS}
COMPONENT compiler-rt-headers
More information about the llvm-commits
mailing list