[PATCH] D52199: [profile] Install headers for custom runtime maintainers
Vedant Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 24 18:16:59 PDT 2019
vsk updated this revision to Diff 221651.
vsk added a comment.
- Drop an extraneous lldb change.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D52199/new/
https://reviews.llvm.org/D52199
Files:
compiler-rt/include/CMakeLists.txt
Index: compiler-rt/include/CMakeLists.txt
===================================================================
--- compiler-rt/include/CMakeLists.txt
+++ compiler-rt/include/CMakeLists.txt
@@ -28,10 +28,19 @@
)
endif(COMPILER_RT_BUILD_XRAY)
+if(COMPILER_RT_BUILD_PROFILE AND COMPILER_RT_HAS_PROFILE)
+ set(PROFILE_HEADERS
+ ../lib/profile/InstrProfiling.h
+ ../lib/profile/InstrProfilingInternal.h
+ ../lib/profile/InstrProfData.inc
+ )
+endif()
+
set(COMPILER_RT_HEADERS
${SANITIZER_HEADERS}
${FUZZER_HEADERS}
- ${XRAY_HEADERS})
+ ${XRAY_HEADERS}
+ ${PROFILE_HEADERS})
set(output_dir ${COMPILER_RT_OUTPUT_DIR}/include)
@@ -66,6 +75,11 @@
COMPONENT compiler-rt-headers
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
DESTINATION ${COMPILER_RT_INSTALL_PATH}/include/xray)
+# Install profile headers.
+install(FILES ${PROFILE_HEADERS}
+ COMPONENT compiler-rt-headers
+ PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
+ DESTINATION ${COMPILER_RT_INSTALL_PATH}/include/profile)
if (NOT CMAKE_CONFIGURATION_TYPES) # don't add this for IDEs.
add_custom_target(install-compiler-rt-headers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52199.221651.patch
Type: text/x-patch
Size: 1153 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190925/bad8b50d/attachment.bin>
More information about the llvm-commits
mailing list