aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ubsan_minimal
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 /lib/ubsan_minimal
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 'lib/ubsan_minimal')
-rw-r--r--lib/ubsan_minimal/CMakeLists.txt53
1 files changed, 0 insertions, 53 deletions
diff --git a/lib/ubsan_minimal/CMakeLists.txt b/lib/ubsan_minimal/CMakeLists.txt
deleted file mode 100644
index e0910e80f97e..000000000000
--- a/lib/ubsan_minimal/CMakeLists.txt
+++ /dev/null
@@ -1,53 +0,0 @@
-# Build for the minimal undefined behavior sanitizer runtime support library.
-
-set(UBSAN_MINIMAL_SOURCES
- ubsan_minimal_handlers.cc
- )
-
-include_directories(..)
-
-set(UBSAN_CFLAGS ${SANITIZER_COMMON_CFLAGS})
-append_rtti_flag(OFF UBSAN_CFLAGS)
-
-set(UBSAN_LINK_FLAGS ${SANITIZER_COMMON_LINK_FLAGS})
-
-set(UBSAN_DYNAMIC_LIBS ${SANITIZER_COMMON_LINK_LIBS})
-
-add_compiler_rt_component(ubsan-minimal)
-
-# Common parts of minimal UBSan runtime.
-add_compiler_rt_object_libraries(RTUbsan_minimal
- OS ${SANITIZER_COMMON_SUPPORTED_OS}
- ARCHS ${UBSAN_COMMON_SUPPORTED_ARCH}
- SOURCES ${UBSAN_MINIMAL_SOURCES} CFLAGS ${UBSAN_CFLAGS})
-
-
-if(COMPILER_RT_HAS_UBSAN_MINIMAL)
- # Standalone minimal UBSan runtimes.
- add_compiler_rt_runtime(clang_rt.ubsan_minimal
- STATIC
- OS ${SANITIZER_COMMON_SUPPORTED_OS}
- ARCHS ${UBSAN_SUPPORTED_ARCH}
- OBJECT_LIBS RTUbsan_minimal
- CFLAGS ${UBSAN_CFLAGS}
- PARENT_TARGET ubsan-minimal)
-
- add_compiler_rt_runtime(clang_rt.ubsan_minimal
- SHARED
- OS ${SANITIZER_COMMON_SUPPORTED_OS}
- ARCHS ${UBSAN_SUPPORTED_ARCH}
- OBJECT_LIBS RTUbsan_minimal
- CFLAGS ${UBSAN_CFLAGS}
- LINK_FLAGS ${UBSAN_LINK_FLAGS}
- LINK_LIBS ${UBSAN_DYNAMIC_LIBS}
- PARENT_TARGET ubsan-minimal)
-
- if (SANITIZER_USE_SYMBOLS AND NOT APPLE)
- set(ARCHS_FOR_SYMBOLS ${UBSAN_SUPPORTED_ARCH})
- list(REMOVE_ITEM ARCHS_FOR_SYMBOLS i386 i686)
- add_sanitizer_rt_symbols(clang_rt.ubsan_minimal
- ARCHS ${ARCHS_FOR_SYMBOLS}
- PARENT_TARGET ubsan-minimal
- EXTRA ubsan.syms.extra)
- endif()
-endif()