Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
testdata/ | 03-May-2024 | - | 16,738 | 16,680 | ||
README.md | D | 03-May-2024 | 1.2 KiB | 37 | 28 | |
android_config_test.go | D | 03-May-2024 | 3.2 KiB | 133 | 121 | |
bisect_flag.go | D | 03-May-2024 | 1.7 KiB | 77 | 63 | |
bisect_flag_test.go | D | 03-May-2024 | 5.7 KiB | 185 | 164 | |
build.py | D | 03-May-2024 | 2.2 KiB | 80 | 54 | |
bundle.README | D | 03-May-2024 | 605 | 19 | 13 | |
bundle.py | D | 03-May-2024 | 2 KiB | 69 | 45 | |
ccache_flag.go | D | 03-May-2024 | 2.4 KiB | 65 | 26 | |
ccache_flag_test.go | D | 03-May-2024 | 4.8 KiB | 174 | 151 | |
clang_flags.go | D | 03-May-2024 | 7.2 KiB | 217 | 147 | |
clang_flags_test.go | D | 03-May-2024 | 9.5 KiB | 311 | 283 | |
clang_syntax_flag.go | D | 03-May-2024 | 1.1 KiB | 38 | 29 | |
clang_syntax_flag_test.go | D | 03-May-2024 | 5.3 KiB | 181 | 163 | |
clang_tidy_flag.go | D | 03-May-2024 | 2.5 KiB | 101 | 85 | |
clang_tidy_flag_test.go | D | 03-May-2024 | 7.5 KiB | 282 | 259 | |
command.go | D | 03-May-2024 | 6.4 KiB | 261 | 222 | |
command_test.go | D | 03-May-2024 | 1.2 KiB | 40 | 33 | |
compile_with_fallback.go | D | 03-May-2024 | 3.7 KiB | 106 | 85 | |
compile_with_fallback_test.go | D | 03-May-2024 | 8.4 KiB | 293 | 269 | |
compiler_wrapper.go | D | 03-May-2024 | 7.3 KiB | 247 | 220 | |
compiler_wrapper_test.go | D | 03-May-2024 | 4.4 KiB | 151 | 133 | |
config.go | D | 03-May-2024 | 6.1 KiB | 213 | 157 | |
config_test.go | D | 03-May-2024 | 3 KiB | 147 | 93 | |
cros_hardened_config_test.go | D | 03-May-2024 | 14.9 KiB | 552 | 519 | |
cros_host_config_test.go | D | 03-May-2024 | 2.4 KiB | 95 | 76 | |
cros_nonhardened_config_test.go | D | 03-May-2024 | 639 | 26 | 17 | |
disable_werror_flag.go | D | 03-May-2024 | 4.7 KiB | 135 | 93 | |
disable_werror_flag_test.go | D | 03-May-2024 | 11 KiB | 375 | 341 | |
env.go | D | 03-May-2024 | 3.8 KiB | 147 | 108 | |
env_test.go | D | 03-May-2024 | 5.2 KiB | 216 | 191 | |
errors.go | D | 03-May-2024 | 2.2 KiB | 87 | 69 | |
errors_test.go | D | 03-May-2024 | 2 KiB | 73 | 60 | |
gcc_flags.go | D | 03-May-2024 | 868 | 33 | 22 | |
gcc_flags_test.go | D | 03-May-2024 | 1.7 KiB | 65 | 54 | |
go_exec.go | D | 03-May-2024 | 621 | 24 | 11 | |
goldenutil_test.go | D | 03-May-2024 | 5.9 KiB | 201 | 175 | |
gomacc_flag.go | D | 03-May-2024 | 924 | 42 | 35 | |
gomacc_flag_test.go | D | 03-May-2024 | 2.8 KiB | 95 | 79 | |
libc_exec.go | D | 03-May-2024 | 2.1 KiB | 73 | 35 | |
main.go | D | 03-May-2024 | 1.3 KiB | 43 | 16 | |
pie_flags.go | D | 03-May-2024 | 1.3 KiB | 44 | 35 | |
pie_flags_test.go | D | 03-May-2024 | 2.2 KiB | 85 | 73 | |
print_cmdline_flag.go | D | 03-May-2024 | 469 | 20 | 14 | |
print_cmdline_flag_test.go | D | 03-May-2024 | 2.6 KiB | 86 | 72 | |
print_config_flag.go | D | 03-May-2024 | 523 | 22 | 15 | |
print_config_flag_test.go | D | 03-May-2024 | 832 | 29 | 21 | |
rusage_flag.go | D | 03-May-2024 | 2.6 KiB | 71 | 58 | |
rusage_flag_test.go | D | 03-May-2024 | 5.7 KiB | 171 | 144 | |
sanitizer_flags.go | D | 03-May-2024 | 1.8 KiB | 59 | 44 | |
sanitizer_flags_test.go | D | 03-May-2024 | 5 KiB | 153 | 129 | |
stackprotector_flags.go | D | 03-May-2024 | 774 | 30 | 23 | |
stackprotector_flags_test.go | D | 03-May-2024 | 1.7 KiB | 58 | 47 | |
sysroot_flag.go | D | 03-May-2024 | 773 | 33 | 25 | |
sysroot_flag_test.go | D | 03-May-2024 | 2.4 KiB | 84 | 71 | |
testutil_test.go | D | 03-May-2024 | 7.5 KiB | 294 | 251 | |
thumb_flags.go | D | 03-May-2024 | 897 | 28 | 16 | |
thumb_flags_test.go | D | 03-May-2024 | 3.1 KiB | 114 | 93 | |
unsupported_flags.go | D | 03-May-2024 | 388 | 15 | 9 | |
unsupported_flags_test.go | D | 03-May-2024 | 549 | 21 | 14 | |
update_compiler_wrapper.sh | D | 03-May-2024 | 1.4 KiB | 30 | 23 | |
x64_flags.go | D | 03-May-2024 | 522 | 22 | 13 | |
x64_flags_test.go | D | 03-May-2024 | 1 KiB | 40 | 31 |
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