diff options
author | Petr Hosek <phosek@chromium.org> | 2019-04-30 17:21:13 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2019-04-30 17:21:13 +0000 |
commit | 2ac8e2003401eef2119ec05c9d596756703d5681 (patch) | |
tree | 888b78e6fc40bdd00f78a37e4ccacc34ac5b1bde /CMakeLists.txt | |
parent | 8d158e4bfb63c4792b7135d0625fcc4592dcac7b (diff) | |
download | compiler-rt-2ac8e2003401eef2119ec05c9d596756703d5681.tar.gz |
[compiler-rt] Simple crtbegin.o and crtend.o implementation
Clang relies on existence of certain symbols that are normally
provided by crtbegin.o/crtend.o. However, LLVM does not currently
provide implementation of these files, instead relying on either
libgcc or implementations provided as part of the system.
This change provides an initial implementation of crtbegin.o/crtend.o
that can be used on system that don't provide crtbegin.o/crtend.o as
part of their C library.
Differential Revision: https://reviews.llvm.org/D28791
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359576 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 28d6a592e..7dfb1ee28 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,6 +29,8 @@ include(CompilerRTUtils) option(COMPILER_RT_BUILD_BUILTINS "Build builtins" ON) mark_as_advanced(COMPILER_RT_BUILD_BUILTINS) +option(COMPILER_RT_BUILD_CRT "Build crtbegin.o/crtend.o" ON) +mark_as_advanced(COMPILER_RT_BUILD_CRT) option(COMPILER_RT_BUILD_SANITIZERS "Build sanitizers" ON) mark_as_advanced(COMPILER_RT_BUILD_SANITIZERS) option(COMPILER_RT_BUILD_XRAY "Build xray" ON) |