-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix ODR violations in our Eigen Tensor tests #4412
Fix ODR violations in our Eigen Tensor tests #4412
Conversation
Hi @rwgk, can you take a look at this PR? I think this fixes the ODR issue in our tests. At least, based on https://github.com/pybind/pybind11/actions/runs/3720383627/jobs/6309827070 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm traveling and have only very unreliable internet at the moment, therefore I couldn't try things out myself. I'll look more as soon as I can.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks for the tweaks! With that I just had to add one line in my SConscript to adjust to this PR.
Description
The current way we are doing unit tests with Eigen unintentionally triggers ODR violations due to testing both with and without std::array.
This fixes those ODR violations by updating our build scripts.