aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2022-03-23 18:32:52 +0100
committerDave Wallace <dwallacelf@gmail.com>2022-03-25 16:12:03 +0000
commit2586bd6e1c826f5ece6c30948abd504533f5d200 (patch)
tree6c306c04500e08c9ba05a5e8572caba01605b47a /docs
parentd373ebef012b1fe94c3df0b92e8c27f90cf782f9 (diff)
docs: Fix macos clang-format docs
Type: docs Change-Id: Iaa2f5e2bb92342c1612cb3addbb9bfdc26623d99 Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/developer/build-run-debug/cross_compile_macos.rst19
1 files changed, 10 insertions, 9 deletions
diff --git a/docs/developer/build-run-debug/cross_compile_macos.rst b/docs/developer/build-run-debug/cross_compile_macos.rst
index 5eec5569a8b..0d9919874f7 100644
--- a/docs/developer/build-run-debug/cross_compile_macos.rst
+++ b/docs/developer/build-run-debug/cross_compile_macos.rst
@@ -15,7 +15,7 @@ This is a first attempt to support Cross compilation of VPP on MacOS for develop
$ pip3 install ply pyyaml jsonschema
$ brew install gnu-sed pkg-config ninja crosstool-ng
-* You'll also need to install ``clang-format 10.0.0`` to be able to ``make checkstyle``. This can be done with :ref:`this doc<install_clang_format_10_0_0>`
+* You'll also need to install ``clang-format 11.0.0`` to be able to ``make checkstyle``. This can be done with :ref:`this doc<install_clang_format_11_0_0>`
* You should link the binaries to make them available in your path with their original names e.g. :
.. code-block:: console
@@ -51,20 +51,21 @@ This should build vpp on MacOS
Good luck :)
-.. _install_clang_format_10_0_0 :
+.. _install_clang_format_11_0_0 :
-Installing clang-format 10.0.0
+Installing clang-format 11.0.0
------------------------------
In order to install clang-format on macos :
.. code-block:: bash
- $ wget https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/clang-10.0.0.src.tar.xz
- $ tar -xvf clang+llvm-10.0.0-x86_64-apple-darwin.tar.xz
- $ mv clang+llvm-10.0.0-x86_64-apple-darwin /usr/local/Cellar/
- $ sudo ln -s ../Cellar/clang+llvm-10.0.0-x86_64-apple-darwin/bin/clang-format /usr/local/bin/clang-format
- $ sudo ln -s ../Cellar/clang+llvm-10.0.0-x86_64-apple-darwin/bin/clang-format /usr/local/bin/clang-format-10
- $ sudo ln -s ../Cellar/clang+llvm-10.0.0-x86_64-apple-darwin/share/clang/clang-format-diff.py /usr/local/bin/clang-format-diff-10
+ brew install clang-format@11
+ wget https://raw.githubusercontent.com/llvm/llvm-project/llvmorg-11.0.0/clang/tools/clang-format/clang-format-diff.py \
+ -O /usr/local/Cellar/clang-format@11/11.1.0/bin/clang-format-diff.py
+ chmod +x /usr/local/Cellar/clang-format@11/11.1.0/bin/clang-format-diff.py
+ ln -s /usr/local/Cellar/clang-format@11/11.1.0/bin/clang-format-diff.py /usr/local/bin/clang-format-diff-11
+ ln -s /usr/local/Cellar/clang-format@11/11.1.0/bin/clang-format-11 /usr/local/bin/clang-format
+
Source `Clang website <https://releases.llvm.org/download.html#git>`_