diff options
author | Eli Friedman <efriedma@codeaurora.org> | 2018-06-14 23:22:53 +0000 |
---|---|---|
committer | Eli Friedman <efriedma@codeaurora.org> | 2018-06-14 23:22:53 +0000 |
commit | 16c44560227cced92fbb61e3ab5bf403a74791f8 (patch) | |
tree | 4f03fe676e85f62d4ed04cd6dfe9e021d5dff15f | |
parent | bc023c968c7c085220f32445f1d8a08ad3b5290f (diff) | |
download | bcm5719-llvm-16c44560227cced92fbb61e3ab5bf403a74791f8.tar.gz bcm5719-llvm-16c44560227cced92fbb61e3ab5bf403a74791f8.zip |
[compiler-rt] [builtins] Don't build __atomic_* by default.
The locks need to be implemented in a shared library to work correctly,
so they shouldn't be part of libclang_rt.builtins.a, except in
specialized scenarios where the user can prove it will only be linked
once.
Differential Revision: https://reviews.llvm.org/D47606
llvm-svn: 334779
-rw-r--r-- | compiler-rt/lib/builtins/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/builtins/CMakeLists.txt b/compiler-rt/lib/builtins/CMakeLists.txt index 5e7f2246787..99184baf5bc 100644 --- a/compiler-rt/lib/builtins/CMakeLists.txt +++ b/compiler-rt/lib/builtins/CMakeLists.txt @@ -173,8 +173,8 @@ set(GENERIC_TF_SOURCES trunctfsf2.c) option(COMPILER_RT_EXCLUDE_ATOMIC_BUILTIN - "Skip the atomic builtin (this may be needed if system headers are unavailable)" - Off) + "Skip the atomic builtin (these should normally be provided by a shared library)" + On) if(NOT FUCHSIA AND NOT COMPILER_RT_BAREMETAL_BUILD) set(GENERIC_SOURCES |