Attempt to fix Sphinx build
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@281697 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/docs/BuildingLibcxx.rst b/docs/BuildingLibcxx.rst
index 5e506b8..1c3be87 100644
--- a/docs/BuildingLibcxx.rst
+++ b/docs/BuildingLibcxx.rst
@@ -144,26 +144,26 @@
**Default**: ``OFF``
- Build libc++ as a 32 bit library. Also see :option:`LLVM_BUILD_32_BITS`.
+ Build libc++ as a 32 bit library. Also see `LLVM_BUILD_32_BITS`.
.. option:: LIBCXX_ENABLE_SHARED:BOOL
**Default**: ``ON``
- Build libc++ as a shared library. Either :option:`LIBCXX_ENABLE_SHARED` or
- :option:`LIBCXX_ENABLE_STATIC` has to be enabled.
+ Build libc++ as a shared library. Either `LIBCXX_ENABLE_SHARED` or
+ `LIBCXX_ENABLE_STATIC` has to be enabled.
.. option:: LIBCXX_ENABLE_STATIC:BOOL
**Default**: ``ON``
- Build libc++ as a static library. Either :option:`LIBCXX_ENABLE_SHARED` or
- :option:`LIBCXX_ENABLE_STATIC` has to be enabled.
+ Build libc++ as a static library. Either `LIBCXX_ENABLE_SHARED` or
+ `LIBCXX_ENABLE_STATIC` has to be enabled.
.. option:: LIBCXX_LIBDIR_SUFFIX:STRING
Extra suffix to append to the directory where libraries are to be installed.
- This option overrides :option:`LLVM_LIBDIR_SUFFIX`.
+ This option overrides `LLVM_LIBDIR_SUFFIX`.
.. _libc++experimental options:
diff --git a/docs/Makefile.sphinx b/docs/Makefile.sphinx
index 2ca1e4d..ae37a34 100644
--- a/docs/Makefile.sphinx
+++ b/docs/Makefile.sphinx
@@ -5,7 +5,7 @@
# out-of-tree builds.
# You can set these variables from the command line.
-SPHINXOPTS =
+SPHINXOPTS = -n -W
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
diff --git a/docs/TestingLibcxx.rst b/docs/TestingLibcxx.rst
index e5323a3..d4fe152 100644
--- a/docs/TestingLibcxx.rst
+++ b/docs/TestingLibcxx.rst
@@ -191,13 +191,13 @@
.. envvar:: LIBCXX_SITE_CONFIG=<path/to/lit.site.cfg>
Specify the site configuration to use when running the tests.
- Also see :option:`libcxx_site_config`.
+ Also see `libcxx_site_config`.
.. envvar:: LIBCXX_COLOR_DIAGNOSTICS
If ``LIBCXX_COLOR_DIAGNOSTICS`` is defined then the test suite will attempt
to use color diagnostic outputs from the compiler.
- Also see :option:`color_diagnostics`.
+ Also see `color_diagnostics`.
Benchmarks
==========