commit | 4947e7781dc13928ac38e0f9893732213a29d7af | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Thu Jul 08 08:16:43 2021 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jul 30 23:16:30 2021 +0000 |
tree | 1021c7d396c43857a721e126436d65d3835ef0ea | |
parent | 36b1ff9ad91b76b5e58770d378711ae2038427e5 [diff] |
pw_build: Remove build directory prefix from paths Since the build directory can be set to anything in gn gen, remap absolute paths to it to "out" using -ffile-prefix-map. The build directory is often nested under //, so it should be removed first. However, GCC and Clang apply -ffile-prefix-map options in opposite order, so apply this option first and last to handle both compilers. Change-Id: Iba135ba23048b7b0bf8b682397ddabb53dee4360 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/52381 Reviewed-by: Rob Mohr <mohrr@google.com> Commit-Queue: Wyatt Hepler <hepler@google.com>
See our website: http://pigweed.dev