Name Description Size
aix
android
apple
BUILD.gn 661
cc_wrapper.gni 1264
check_rewrapper_cfg.py This assumes that corp machine has gcert binary in known location. 1976
clang_code_coverage_wrapper.py Removes code coverage flags from invocations of the Clang C/C++ compiler. If the GN arg `use_clang_coverage=true`, this script will be invoked by default. GN will add coverage instrumentation flags to almost all source files. This script is used to remove instrumentation flags from a subset of the source files. By default, it will not remove flags from any files. If the option --files-to-instrument is passed, this script will remove flags from all files except the ones listed in --files-to-instrument. This script also contains hard-coded exclusion lists of files to never instrument, indexed by target operating system. Files in these lists have their flags removed in both modes. The OS can be selected with --target-os. This script also contains hard-coded force lists of files to always instrument, indexed by target operating system. Files in these lists never have their flags removed in either mode. The OS can be selected with --target-os. The order of precedence is: force list, exclusion list, --files-to-instrument. The path to the coverage instrumentation input file should be relative to the root build directory, and the file consists of multiple lines where each line represents a path to a source file, and the specified paths must be relative to the root build directory. e.g. ../../base/task/post_task.cc for build directory 'out/Release'. The paths should be written using OS-native path separators for the current platform. One caveat with this compiler wrapper is that it may introduce unexpected behaviors in incremental builds when the file path to the coverage instrumentation input file changes between consecutive runs, so callers of this script are strongly advised to always use the same path such as "${root_build_dir}/coverage_instrumentation_input.txt". It's worth noting on try job builders, if the contents of the instrumentation file changes so that a file doesn't need to be instrumented any longer, it will be recompiled automatically because if try job B runs after try job A, the files that were instrumented in A will be updated (i.e., reverted to the checked in version) in B, and so they'll be considered out of date by ninja and recompiled. Example usage: clang_code_coverage_wrapper.py \\ --files-to-instrument=coverage_instrumentation_input.txt Siso implements the same logic in build/config/siso/clang_code_coverage_wrapper.star, which avoids the wrapper invocations for remote execution and performance improvement. Please update the Siso starlark file when updating this file. 30452
concurrent_links.gni 5805
cros
cros_toolchain.gni 3917
fuchsia
gcc_link_wrapper.py Runs a linking command and optionally a strip command. This script exists to avoid using complex shell commands in gcc_toolchain.gni's tool("link"), in case the host running the compiler does not have a POSIX-like shell (e.g. Windows). 3278
gcc_solink_wrapper.py Runs 'ld -shared' and generates a .TOC file that's untouched when unchanged. This script exists to avoid using complex shell commands in gcc_toolchain.gni's tool("solink"), in case the host running the compiler does not have a POSIX-like shell (e.g. Windows). 7076
gcc_toolchain.gni 37373
get_concurrent_links.py 7539
get_cpu_count.py 414
ios
kythe.gni 366
linux
mac
nacl
nacl_toolchain.gni 2549
OWNERS 62
rbe.gni 4906
remoteexec_defaults.gni 149
siso.gni 1001
toolchain.gni 5362
wasm
whole_archive.py Modify and return `command` such that -LinkWrapper,add-whole-archive=X becomes a linking inclusion X (-lX) but wrapped in whole-archive modifiers. 2053
win
wrapper_utils.py Helper functions for gcc_toolchain.gni wrappers. 3083
zos