bazel-contrib / rules_foreign_cc

Build rules for interfacing with "foreign" (non-Bazel) build systems (CMake, configure-make, GNU Make, boost, ninja, Meson)
https://bazel-contrib.github.io/rules_foreign_cc
Apache License 2.0
680 stars 249 forks source link

Fix for #1271, set_file_prefix_map attribute #1288

Closed aaron-michaux closed 2 months ago

aaron-michaux commented 2 months ago

One way to fix https://github.com/bazelbuild/rules_foreign_cc/issues/1271 is to pass -ffile-prefix-map=$SANDBOX=. This fix creates a set_file_prefix_map attribute for the cmake rule. If True, will set the gcc/clang flag to eviscerate the sandbox path from the debug symbols.

google-cla[bot] commented 2 months ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.