[CMake] Add option (defaulted off) to exclude atomic.c
authorChris Bieneman <beanz@apple.com>
Thu, 1 Sep 2016 21:05:49 +0000 (21:05 +0000)
committerChris Bieneman <beanz@apple.com>
Thu, 1 Sep 2016 21:05:49 +0000 (21:05 +0000)
commit90646fe815d254fd50144ba72c56247785048b64
tree1b851f1cb35805eaa7a19f5db8d3167cf1a64dd2
parentc0f18172f56ad349f56fefc15131cef2782bec8a
[CMake] Add option (defaulted off) to exclude atomic.c

The atomic builtin source is problematic when cross-compiling builtins because it requires a variable and sometimes large set of system headers. This option allows users to optionally prevent it from being built.

llvm-svn: 280416
compiler-rt/lib/builtins/CMakeLists.txt