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

build: change the way we set cxx version for bazel. #5114

Merged
merged 1 commit into from
Feb 20, 2023

Conversation

Keenuts
Copy link
Contributor

@Keenuts Keenuts commented Feb 15, 2023

Before, we did set cxx version to c++17 using COPTS in our bazel files. This was wrong, and part of the dependencies were then built with the default standard version. This was not an issue until we moved to c++17.

Then, we decided to use the bazel --cxxopt=-std=c++17, but this was only valid for nix platforms.
The last option left is to ask the user to specify the standard when building using bazel.

@Keenuts Keenuts force-pushed the cxx17-build branch 3 times, most recently from 163771d to 90a4af0 Compare February 15, 2023 17:11
@Keenuts Keenuts marked this pull request as ready for review February 15, 2023 17:11
Before, we did set cxx version to c++17 using COPTS in our bazel files.
This was wrong, and part of the dependencies were then built with the
default standard version. This was not an issue until we moved to c++17.

Then, we decided to use the bazel --cxxopt=-std=c++17, but this was only
valid for nix platforms.
The last option left is to ask the user to specify the standard
when building using bazel.
@s-perron
Copy link
Collaborator

I don't like forcing the user to add an extra option. I'll try to find out from the bazel team how they expect this to be done.

Copy link
Collaborator

@s-perron s-perron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Talked with some bazel developers, and it seems like this is the best we can do at this time.

@Keenuts Keenuts merged commit 987a5f1 into KhronosGroup:main Feb 20, 2023
@Keenuts Keenuts deleted the cxx17-build branch February 20, 2023 10:11
@Keenuts
Copy link
Contributor Author

Keenuts commented Feb 20, 2023

Talked with some bazel developers, and it seems like this is the best we can do at this time.

Kinda sad. Thanks for looking into it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants