Commit 045f4cd2 authored by Hans Wennborg's avatar Hans Wennborg Committed by Commit Bot

Update clang-format build instructions for Windows

Bug: 993206
Change-Id: I2d010d65ae5b6007b7c065dc45ae8dd2a36d1dee
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2083183Reviewed-by: default avatarTim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#746340}
parent cd5f8b22
...@@ -27,25 +27,23 @@ Windows step-by-step: ...@@ -27,25 +27,23 @@ Windows step-by-step:
```shell ```shell
# [double check you have the tools you need] # [double check you have the tools you need]
where cmake.exe # You need to install this. where cmake.exe # You need to install this.
where svn.exe # Maybe fix with: set PATH=%PATH%;D:\src\depot_tools\svn_bin
"c:\Program Files (x86)\Microsoft Visual Studio 14.0\vc\vcvarsall.bat" amd64_x86 # In chromium/src
tools\win\setenv amd64_x86
set CLANG_REV=198831 # You must change this value (see above) set CLANG_REV=56ac9d30d35632969baa39829ebc8465ed5937ef # You must change this value (see above)
rmdir /S /Q llvm-project
[from a clean directory, check out and build] git clone https://github.com/llvm/llvm-project
rmdir /S /Q llvm cd llvm-project
rmdir /S /Q llvm-build git checkout %CLANG_REV%
mkdir llvm mkdir build
mkdir llvm-build cd build
svn co http://llvm.org/svn/llvm-project/llvm/trunk@%CLANG_REV% llvm set CC=..\..\third_party\llvm-build\Release+Asserts\bin\clang-cl.exe
cd llvm\tools set CXX=..\..\third_party\llvm-build\Release+Asserts\bin\clang-cl.exe
svn co http://llvm.org/svn/llvm-project/cfe/trunk@%CLANG_REV% clang set CFLAGS=-m32
cd ..\..\llvm-build set CXXLAGS=-m32
set CC=cl
set CXX=cl
cmake -G Ninja ..\llvm -DCMAKE_BUILD_TYPE=Release -DLLVM_USE_CRT_RELEASE=MT ^ cmake -G Ninja ..\llvm -DCMAKE_BUILD_TYPE=Release -DLLVM_USE_CRT_RELEASE=MT ^
-DLLVM_ENABLE_ASSERTIONS=NO -DLLVM_ENABLE_THREADS=NO ^ -DLLVM_ENABLE_ASSERTIONS=NO -DLLVM_ENABLE_THREADS=NO ^
-DPYTHON_EXECUTABLE=d:\src\depot_tools\python276_bin\python.exe -DLLVM_ENABLE_PROJECTS=clang
ninja clang-format ninja clang-format
bin\clang-format.exe --version bin\clang-format.exe --version
``` ```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment