aboutsummaryrefslogtreecommitdiff
path: root/cmake/caches/README.txt
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/caches/README.txt')
-rw-r--r--cmake/caches/README.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/cmake/caches/README.txt b/cmake/caches/README.txt
new file mode 100644
index 000000000000..55e5e159db13
--- /dev/null
+++ b/cmake/caches/README.txt
@@ -0,0 +1,18 @@
+CMake Caches
+============
+
+This directory contains CMake cache scripts that pre-populate the CMakeCache in
+a build directory with commonly used settings.
+
+The first two cache files in the directory are used by Apple to build the clang
+distribution packaged with Xcode. You can use the caches with the following
+CMake invocation:
+
+cmake -G <build system>
+ -C <path to llvm>/tools/clang/cmake/caches/Apple-stage1.cmake
+ -DCMAKE_BUILD_TYPE=Release
+ [-DCMAKE_INSTALL_PREFIX=<install path>]
+ <path to llvm>
+
+Building the `bootstrap` target from this generation will build clang, and
+`bootstrap-install` will install it.