Commit b1617017 authored by Nico Weber's avatar Nico Weber Committed by Commit Bot

clang docs: Update page a bit.

The Windows bits were outdated.

Bug: none
Change-Id: I45fd6b70e013491080bc7028b7ce5be600e8fab2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1790124
Commit-Queue: Nico Weber <thakis@chromium.org>
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: default avatarHans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#694325}
parent 94b15fab
# Clang # Clang
[Clang](http://clang.llvm.org/) is the main supported compiler when Chromium ships a prebuilt [clang](http://clang.llvm.org) binary.
building Chromium on all platforms. It's just upstream clang built at a known-good revision that we
bump every two weeks or so.
Known [clang bugs and feature This is the only supported compiler for building Chromium.
requests](http://code.google.com/p/chromium/issues/list?q=label:clang).
[TOC] [TOC]
## Building with clang ## Using gcc on Linux
This happens by default, with clang binaries being fetched by gclient `is_clang = false` will make the build use system gcc on Linux. There are no
during the `gclient runhooks` phase. To fetch them manually, or build bots that test this and there is no guarantee it will work, but we accept
a local custom clang, use patches for this configuration.
tools/clang/scripts/update.py
Run `gn args` and make sure there is no `is_clang = false` in your args.gn file.
Build: `ninja -C out/gn chrome`
## Reverting to gcc on Linux or MSVC on Windows
There are no bots that test this but `is_clang = false` will revert to
gcc on Linux and to Visual Studio on Windows. There is no guarantee it
will work.
## Mailing List ## Mailing List
...@@ -66,16 +54,8 @@ See [clang_static_analyzer.md](clang_static_analyzer.md). ...@@ -66,16 +54,8 @@ See [clang_static_analyzer.md](clang_static_analyzer.md).
## Windows ## Windows
Since October 2017, clang is the default compiler on Windows. It uses clang is the default compiler on Windows. It uses MSVC's SDK, so you still need
MSVC's linker and SDK, so you still need to have Visual Studio with to have Visual Studio with C++ support installed.
C++ support installed.
To use MSVC's compiler (if it still works), use `is_clang = false`.
Current brokenness:
* To get colored diagnostics, you need to be running
[ansicon](https://github.com/adoxa/ansicon/releases).
## Using a custom clang binary ## Using a custom clang binary
......
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