Let's assume we're trying to build chromium with sancov
. Although this is possible purely with gn
arguments, I'll demonstrate this with system toolchain.
First, create a file at out/sancov/args.gn
. The contents of the file should be as follows:
custom_toolchain="//build/toolchain/linux/unbundle:default"
host_toolchain="//build/toolchain/linux/unbundle:default"
is_clang = true
clang_use_chrome_plugins = false