• Home
Name Date Size #Lines LOC

..--

testdata/03-May-2024-16,73816,680

README.mdD03-May-20241.2 KiB3728

android_config_test.goD03-May-20243.2 KiB133121

bisect_flag.goD03-May-20241.7 KiB7763

bisect_flag_test.goD03-May-20245.7 KiB185164

build.pyD03-May-20242.2 KiB8054

bundle.READMED03-May-2024605 1913

bundle.pyD03-May-20242 KiB6945

ccache_flag.goD03-May-20242.4 KiB6526

ccache_flag_test.goD03-May-20244.8 KiB174151

clang_flags.goD03-May-20247.2 KiB217147

clang_flags_test.goD03-May-20249.5 KiB311283

clang_syntax_flag.goD03-May-20241.1 KiB3829

clang_syntax_flag_test.goD03-May-20245.3 KiB181163

clang_tidy_flag.goD03-May-20242.5 KiB10185

clang_tidy_flag_test.goD03-May-20247.5 KiB282259

command.goD03-May-20246.4 KiB261222

command_test.goD03-May-20241.2 KiB4033

compile_with_fallback.goD03-May-20243.7 KiB10685

compile_with_fallback_test.goD03-May-20248.4 KiB293269

compiler_wrapper.goD03-May-20247.3 KiB247220

compiler_wrapper_test.goD03-May-20244.4 KiB151133

config.goD03-May-20246.1 KiB213157

config_test.goD03-May-20243 KiB14793

cros_hardened_config_test.goD03-May-202414.9 KiB552519

cros_host_config_test.goD03-May-20242.4 KiB9576

cros_nonhardened_config_test.goD03-May-2024639 2617

disable_werror_flag.goD03-May-20244.7 KiB13593

disable_werror_flag_test.goD03-May-202411 KiB375341

env.goD03-May-20243.8 KiB147108

env_test.goD03-May-20245.2 KiB216191

errors.goD03-May-20242.2 KiB8769

errors_test.goD03-May-20242 KiB7360

gcc_flags.goD03-May-2024868 3322

gcc_flags_test.goD03-May-20241.7 KiB6554

go_exec.goD03-May-2024621 2411

goldenutil_test.goD03-May-20245.9 KiB201175

gomacc_flag.goD03-May-2024924 4235

gomacc_flag_test.goD03-May-20242.8 KiB9579

libc_exec.goD03-May-20242.1 KiB7335

main.goD03-May-20241.3 KiB4316

pie_flags.goD03-May-20241.3 KiB4435

pie_flags_test.goD03-May-20242.2 KiB8573

print_cmdline_flag.goD03-May-2024469 2014

print_cmdline_flag_test.goD03-May-20242.6 KiB8672

print_config_flag.goD03-May-2024523 2215

print_config_flag_test.goD03-May-2024832 2921

rusage_flag.goD03-May-20242.6 KiB7158

rusage_flag_test.goD03-May-20245.7 KiB171144

sanitizer_flags.goD03-May-20241.8 KiB5944

sanitizer_flags_test.goD03-May-20245 KiB153129

stackprotector_flags.goD03-May-2024774 3023

stackprotector_flags_test.goD03-May-20241.7 KiB5847

sysroot_flag.goD03-May-2024773 3325

sysroot_flag_test.goD03-May-20242.4 KiB8471

testutil_test.goD03-May-20247.5 KiB294251

thumb_flags.goD03-May-2024897 2816

thumb_flags_test.goD03-May-20243.1 KiB11493

unsupported_flags.goD03-May-2024388 159

unsupported_flags_test.goD03-May-2024549 2114

update_compiler_wrapper.shD03-May-20241.4 KiB3023

x64_flags.goD03-May-2024522 2213

x64_flags_test.goD03-May-20241 KiB4031

README.md

1# Compiler wrapper
2
3See the comments on the top of main.go.
4Build is split into 2 steps via separate commands:
5- bundle: copies the sources and the `build.py` file into
6  a folder.
7- build: builds the actual go binary, assuming it is executed
8  from the folder created by `bundle.py`.
9
10This allows to copy the sources to a Chrome OS / Android
11package, including the build script, and then
12build from there without a dependency on toolchain-utils
13itself.
14
15## Update Chrome OS
16
17Copy over sources and `build.py` to Chrome OS:
18```
19(chroot) /mnt/host/source/src/third_party/chromiumos-overlay/sys-devel/llvm/files/update_compiler_wrapper.sh
20```
21
22`build.py` is called by these ebuilds:
23
24- third_party/chromiumos-overlay/sys-devel/llvm/llvm-9.0_pre361749_p20190714.ebuild
25- third_party/chromiumos-overlay/sys-devel/gcc/gcc-*.ebuild
26
27Generated wrappers are stored here:
28
29- Sysroot wrapper with ccache:
30  `/usr/x86_64-pc-linux-gnu/<arch>/gcc-bin/4.9.x/sysroot_wrapper.hardened.ccache`
31- Sysroot wrapper without ccache:
32  `/usr/x86_64-pc-linux-gnu/<arch>/gcc-bin/4.9.x/sysroot_wrapper.hardened.noccache`
33- Clang host wrapper:
34  `/usr/bin/clang_host_wrapper`
35- Gcc host wrapper:
36  `/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.x/host_wrapper`
37

bundle.README

1Copyright 2019 The Chromium OS Authors. All rights reserved.
2Use of this source code is governed by a BSD-style license that can be
3found in the LICENSE file.
4
5Toolchain utils compiler wrapper sources.
6
7Build the wrapper:
8./build --config=<config name> --use_ccache=<bool> \
9  --use_llvm_next=<bool> --output_file=<file>
10
11ATTENTION:
12The files in this folder are generated. Do not modify manually!
13
14To update:
15- modify third_party/toolchain_utils/compiler_wrapper
16- run third_party/toolchain_utils/compiler_wrapper/bundle.py --output_dir=...
17
18Source: https://chromium-review.googlesource.com/q/{change_id}
19