aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-08-20 18:00:15 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-08-20 18:00:15 +0000
commit63714eb5809e39666dec2454c354195e76f916ba (patch)
treee3714cd783c265396c2ef3c117047e7c0ea41619 /include
parent0646903fc1f75f6e605754621119473ee083f4a4 (diff)
downloadsrc-63714eb5809e39666dec2454c354195e76f916ba.tar.gz
src-63714eb5809e39666dec2454c354195e76f916ba.zip
Remove upstream files and directories from vendor/compiler-rt/dist that
we do not use. This saves on repository space, and reduces the number of tree conflicts when merging.
Notes
Notes: svn path=/vendor/compiler-rt/dist/; revision=351268
Diffstat (limited to 'include')
-rw-r--r--include/CMakeLists.txt72
1 files changed, 0 insertions, 72 deletions
diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt
deleted file mode 100644
index c4b93b89a30c..000000000000
--- a/include/CMakeLists.txt
+++ /dev/null
@@ -1,72 +0,0 @@
-if (COMPILER_RT_BUILD_SANITIZERS)
- set(SANITIZER_HEADERS
- sanitizer/allocator_interface.h
- sanitizer/asan_interface.h
- sanitizer/common_interface_defs.h
- sanitizer/coverage_interface.h
- sanitizer/dfsan_interface.h
- sanitizer/esan_interface.h
- sanitizer/hwasan_interface.h
- sanitizer/linux_syscall_hooks.h
- sanitizer/lsan_interface.h
- sanitizer/msan_interface.h
- sanitizer/netbsd_syscall_hooks.h
- sanitizer/scudo_interface.h
- sanitizer/tsan_interface.h
- sanitizer/tsan_interface_atomic.h)
-endif(COMPILER_RT_BUILD_SANITIZERS)
-
-if (COMPILER_RT_BUILD_XRAY)
- set(XRAY_HEADERS
- xray/xray_interface.h
- xray/xray_log_interface.h)
-endif(COMPILER_RT_BUILD_XRAY)
-
-set(COMPILER_RT_HEADERS
- ${SANITIZER_HEADERS}
- ${XRAY_HEADERS})
-
-set(output_dir ${COMPILER_RT_OUTPUT_DIR}/include)
-
-# Copy compiler-rt headers to the build tree.
-set(out_files)
-foreach( f ${COMPILER_RT_HEADERS} )
- set( src ${CMAKE_CURRENT_SOURCE_DIR}/${f} )
- set( dst ${output_dir}/${f} )
- add_custom_command(OUTPUT ${dst}
- DEPENDS ${src}
- COMMAND ${CMAKE_COMMAND} -E copy_if_different ${src} ${dst}
- COMMENT "Copying compiler-rt's ${f}...")
- list(APPEND out_files ${dst})
-endforeach( f )
-
-add_custom_target(compiler-rt-headers ALL DEPENDS ${out_files})
-add_dependencies(compiler-rt compiler-rt-headers)
-set_target_properties(compiler-rt-headers PROPERTIES FOLDER "Compiler-RT Misc")
-
-# Install sanitizer headers.
-install(FILES ${SANITIZER_HEADERS}
- COMPONENT compiler-rt-headers
- PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
- DESTINATION ${COMPILER_RT_INSTALL_PATH}/include/sanitizer)
-# Install xray headers.
-install(FILES ${XRAY_HEADERS}
- COMPONENT compiler-rt-headers
- PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
- DESTINATION ${COMPILER_RT_INSTALL_PATH}/include/xray)
-
-if (NOT CMAKE_CONFIGURATION_TYPES) # don't add this for IDEs.
- add_custom_target(install-compiler-rt-headers
- DEPENDS compiler-rt-headers
- COMMAND "${CMAKE_COMMAND}"
- -DCMAKE_INSTALL_COMPONENT="compiler-rt-headers"
- -P "${CMAKE_BINARY_DIR}/cmake_install.cmake"
- USES_TERMINAL)
- add_custom_target(install-compiler-rt-headers-stripped
- DEPENDS compiler-rt-headers
- COMMAND "${CMAKE_COMMAND}"
- -DCMAKE_INSTALL_COMPONENT="compiler-rt-headers"
- -DCMAKE_INSTALL_DO_STRIP=1
- -P "${CMAKE_BINARY_DIR}/cmake_install.cmake"
- USES_TERMINAL)
-endif()