aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/buildstamp
diff options
context:
space:
mode:
authorGravatar ibiryukov <ibiryukov@google.com>2018-01-02 06:09:04 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-01-02 06:10:59 -0800
commitdefba586cde9435478d13d33225c2c643b58268f (patch)
tree50093caece274d2dea94f41520ee7e72f7dc4eb1 /tools/buildstamp
parent6220c72b27261fc70e63f635a86b528688cd3016 (diff)
Use relative paths for repository-local files in C++ crosstool
Generated crosstool previously used absolute paths for everything. However, when using a compiler, local to the repository (e.g., downloaded via 'repository_ctx.download'), relative paths should be used to avoid absolute paths that point into the crosstool repository. Specifically, this patch contains the following changes: 1. Replaces absolute paths in 'cxx_builtin_include' with relative if includes point inside the repository. 2. Removes the '-B<compiler-dir>' from 'compiler_flag' and 'linker_flag' sections when compiler is inside the repository. PiperOrigin-RevId: 180540359
Diffstat (limited to 'tools/buildstamp')
0 files changed, 0 insertions, 0 deletions