commit | ea55939d82ddcb462e6d319082435ef5a0aff773 | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Wed Jul 07 16:37:12 2021 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jul 08 15:13:21 2021 +0000 |
tree | 325a7c76f89457bf29eab9d14a4799ce58f851ca | |
parent | 1e4d13743318ecab6ceeb47497c11ea9d1f6a733 [diff] |
pw_build: Use -ffile-prefix-map by default By default, Clang and GCC use file paths directly as provided for debug symbols and macros like __FILE__. This means that binaries produced on different machines can be different and may include undesireable info like usernames. Clang and GCC provide the -ffile-prefix-map option to strip non-portable prefixes from filenames. Add a config that applies -ffile-prefix-map to Pigweed builds by default. Change-Id: Icd0fc11b70130b1b0e3ec193b1d245c18a2112b8 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/52340 Reviewed-by: Rob Mohr <mohrr@google.com> Commit-Queue: Wyatt Hepler <hepler@google.com>
See our website: http://pigweed.dev