|author||Tiancong Wang <email@example.com>||Wed Feb 12 13:41:01 2020 -0800|
|committer||Tiancong Wang <firstname.lastname@example.org>||Thu Feb 13 18:13:48 2020 +0000|
compiler_wrapper: Use syscall.exec on platforms other than Chrome OS In crbug.com/1000863, it's reported that golang exec don't play well on Chrome OS, portage sandbox to be exact. That's when we start to use libc's exec. However, the wrapper is also used on non-Chrome OS platforms, such as Android, and linking against libc has no benefit, and might be the root cause of a recent bug. This patch adds code to selectively use Golang's or libc's exec, depending on the platform. BUG=chromium:1000863 BUG=b:144783188 TEST=Build the wrapper locally with Chrome OS and Android configurations Change-Id: Ifd6fa8223205536450b65f728060d7c5556d7619 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2051669 Tested-by: Tiancong Wang <email@example.com> Commit-Queue: Tiancong Wang <firstname.lastname@example.org> Reviewed-by: George Burgess <email@example.com>
Various utilities used by the Chrome OS toolchain team.
To run Python scripts in this directory, first run:
export PYTHONPATH=$(readlink -f .):$PYTHONPATH
from this directory.
Then you can run any script.
To get help on any script, type in
python <script> --help, or refer to the header of the script for more information.