Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make boost libbacktrace dependency hermetic. #1076

Merged
merged 1 commit into from
Jul 23, 2023

Conversation

hzeller
Copy link
Member

@hzeller hzeller commented Jul 23, 2023

This uses Ethans libbacktrace support in bazel_rules_hdl (that we already depend on).

Without, XLS compilation will fail if the libbacktrace doesn't happen to be part of the local compiler set-up:

external/boost/libs/stacktrace/include/boost/stacktrace/detail/libbacktrace_impls.hpp:23:13: fatal error: backtrace.h: No such file or directory
   23 | #   include <backtrace.h>
      |             ^~~~~~~~~~~~~
compilation terminated.

This uses Ethans [libbacktrace support in bazel_rules_hdl](hdl/bazel_rules_hdl@196706d) (that we already depend on).

Without, XLS compilation will fail if the libbacktrace doesn't happen
to be part of the local compiler set-up:

```
external/boost/libs/stacktrace/include/boost/stacktrace/detail/libbacktrace_impls.hpp:23:13: fatal error: backtrace.h: No such file or directory
   23 | #   include <backtrace.h>
      |             ^~~~~~~~~~~~~
compilation terminated.
```

Signed-off-by: Henner Zeller <h.zeller@acm.org>
@hzeller hzeller requested a review from cdleary July 23, 2023 15:05
@hzeller
Copy link
Member Author

hzeller commented Jul 23, 2023

CC @QuantamHD

@copybara-service copybara-service bot merged commit 44b271a into google:main Jul 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants