-
Notifications
You must be signed in to change notification settings - Fork 44
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
Does not build with clang++-6.0 #17
Comments
Ok, since you allow failures for clang, I suppose that's not news for you ;) |
Understanding it is a different matter.
|
Not sure I know what you are asking.
short: enabling IPO detects stuff like ODR violations across source-files, and if your software tests fine with IPO enabled then it will test fine without - the other way around is not guaranteed. |
Thanks for your explanation. It was a note that I don't understand the source of the compilation error (yet) and a link (for myself) to read up on CMake's policy CMP0069 and IPO. (I could have written something less confusing indeed.) |
you need to declare before accessing it in right now its defined afterwards, you need to at least declare a prototype before using it within |
Hello, the tests won't build with clang-6.0, problem is the C++17 configuration in combination with a C++ Library that provides
std::byte
.First the issue:
I used these flags for configuring, clang is version 6.0, libstdc++ is version 7.3.0.
cmake -DCMAKE_POLICY_DEFAULT_CMP0069=NEW -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=True -DCMAKE_CXX_COMPILER=clang++-6.0 -DCMAKE_C_COMPILER=clang-6.0..
Same issue persists if I tell clang to use libc++, which might be a useful additional configuration for the automated tests?
I generally tend to use IPO for testing as this might cause additional warnings or errors, roughly thats what I had to do:
The text was updated successfully, but these errors were encountered: