bazelbuild / bazelbuild/rules_rust

bindgen does not used the `.bazelrc` configured `cxxopts`

Open
#1,552 2 comments 0 reactions 0 assignees View on GitHub
bindgen enhancement needs-triage
Dominant language
Starlark
Stars
843
Forks
651
Avg merge
2d 18h
Merged PRs (30d)
15

Description

In https://github.com/lowRISC/opentitan/pull/14860, I found that while building the dependencies for my bindgen rule, the compiler was not being invoked with the project-specified `--cxxopt`s. In the CI environment, this resulted in the compiler being invoked with `-std=c++0x` rather than the project specified `-std=gnu++14`.

In order to overcome this issue, I added the following to the `.bazelrc`:
```
build --action_env=BAZEL_CXXOPTS="-std=gnu++14"
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.