[PATCH] D119275: [release] Use a supported way of building libc++ when building the documentation
Louis Dionne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 14 13:01:30 PST 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf34f7dfe3a3d: [release] Use a supported way of building libc++ when building the documentation (authored by ldionne).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119275/new/
https://reviews.llvm.org/D119275
Files:
llvm/utils/release/build-docs.sh
Index: llvm/utils/release/build-docs.sh
===================================================================
--- llvm/utils/release/build-docs.sh
+++ llvm/utils/release/build-docs.sh
@@ -90,7 +90,7 @@
fi
cmake -G Ninja $srcdir -B $builddir \
- -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld;libcxx;polly;flang" \
+ -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld;polly;flang" \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_DOXYGEN=ON \
-DLLVM_ENABLE_SPHINX=ON \
@@ -102,7 +102,6 @@
docs-clang-html \
docs-clang-tools-html \
docs-flang-html \
- docs-libcxx-html \
docs-lld-html \
docs-llvm-html \
docs-polly-html \
@@ -113,6 +112,13 @@
doxygen-mlir \
doxygen-polly
+cmake -G Ninja $srcdir/../runtimes -B $builddir/runtimes-doc \
+ -DLLVM_ENABLE_RUNTIMES="libcxx" \
+ -DLLVM_ENABLE_SPHINX=ON \
+ -DSPHINX_WARNINGS_AS_ERRORS=OFF
+
+ninja -C $builddir/runtimes-doc \
+ docs-libcxx-html \
package_doxygen llvm .
package_doxygen clang tools/clang
@@ -121,7 +127,13 @@
html_dir=$builddir/html-export/
-for d in docs/ tools/clang/docs/ tools/lld/docs/ tools/clang/tools/extra/docs/ projects/libcxx/docs/ tools/polly/docs/ tools/flang/docs/; do
+for d in docs/ tools/clang/docs/ tools/lld/docs/ tools/clang/tools/extra/docs/ tools/polly/docs/ tools/flang/docs/; do
mkdir -p $html_dir/$d
mv $builddir/$d/html/* $html_dir/$d/
done
+
+# Keep the documentation for the runtimes under /projects/ to avoid breaking existing links.
+for d in libcxx/docs/; do
+ mkdir -p $html_dir/projects/$d
+ mv $builddir/runtimes-doc/$d/html/* $html_dir/projects/$d/
+done
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119275.408582.patch
Type: text/x-patch
Size: 1847 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220214/a26072b2/attachment.bin>
More information about the llvm-commits
mailing list