summaryrefslogtreecommitdiff
path: root/libc/utils/CMakeLists.txt
diff options
context:
space:
mode:
authorSiva Chandra Reddy <sivachandra@google.com>2021-03-11 15:25:24 -0800
committerSiva Chandra Reddy <sivachandra@google.com>2021-03-12 13:28:40 -0800
commite9e788d145f57bcf815b9797191c1560ba39b842 (patch)
treec305cf98dedad5a04f7c903b14daa4475de6b420 /libc/utils/CMakeLists.txt
parent4b8eb894bfc39b99072fa1d99a348a4022c0cbfc (diff)
[libc] Introduce a full build mode CMake option.
This option will build LLVM libc as a full libc by itself. In this mode, it is not expected that it will be mixed with other libcs. The non-full-build mode will be the default LLVM libc build mode. In a future where LLVM libc is complete enough, the full libc build will be made the default mode.
Diffstat (limited to 'libc/utils/CMakeLists.txt')
-rw-r--r--libc/utils/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/utils/CMakeLists.txt b/libc/utils/CMakeLists.txt
index dfee2646b9b1..6655cb116349 100644
--- a/libc/utils/CMakeLists.txt
+++ b/libc/utils/CMakeLists.txt
@@ -2,5 +2,8 @@ add_subdirectory(CPP)
add_subdirectory(FPUtil)
add_subdirectory(MPFRWrapper)
add_subdirectory(testutils)
-add_subdirectory(tools)
add_subdirectory(UnitTest)
+
+if(LLVM_LIBC_FULL_BUILD)
+ add_subdirectory(tools)
+endif()