Commit Graph

4 Commits

Author SHA1 Message Date
Eli Lipsitz
5d07d8af5e pw_build_info: Suppress overread warning in GCC 11+
GCC 11 adds a new warning, "-Wstringop-overread", that this code
violates. This commit suppresses that warning on GCC 11 and above.

Change-Id: Ie79572639f1c89f1b8f2cdf009949159b3230f1c
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/112862
Commit-Queue: Eli Lipsitz <elipsitz@google.com>
Pigweed-Auto-Submit: Eli Lipsitz <elipsitz@google.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
2022-10-06 18:57:45 +00:00
Wyatt Hepler
d4e68a17b8 pw_build_info: Switch to pw::span
- Switch from std::span to pw::span.
- Update the custom compilation in build_id_test.py to pull in pw::span
  and its dependencies rather than std::span.

Change-Id: I70dc17fef4033eb7996305ee961b179430204977
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/98263
Reviewed-by: Armando Montanez <amontanez@google.com>
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Commit-Queue: Wyatt Hepler <hepler@google.com>
2022-06-16 21:29:46 +00:00
Armando Montanez
5d8e12df98 pw_build_info: Better flag compatibility
Conditionally applies a GCC-only flag when building with gcc.

Change-Id: I22d8decbd780db89b3b07c6880ff4f46a185897f
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/66784
Pigweed-Auto-Submit: Armando Montanez <amontanez@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
2021-12-14 20:57:45 +00:00
Armando Montanez
6954a8dfa1 pw_build_info: Add GNU build ID support
Introduces the pw_build_info module, and adds support for reading GNU
build IDs from python and from inside the context of a C++ application.

Change-Id: I105627cffff28f5a6a2dbdf396be34143b0637d9
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/53760
Reviewed-by: Wyatt Hepler <hepler@google.com>
Reviewed-by: Ewout van Bekkum <ewout@google.com>
Commit-Queue: Armando Montanez <amontanez@google.com>
2021-08-05 17:24:01 +00:00