-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
mini_chromium requres C++20 header span.h #1115
Comments
Hey @aokerholm-cobot, thanks for reporting! I assume you're trying to use 0.7.18 with C++17, correct? If not, which SDK version are you using? |
Yes, I am using 0.7.18 with C++17 |
Mea culpa. That was an oversight on my part that also none of our CI configs discovered since they all have You can try #1118 to see if it fixes the build issue. Again, I'm so sorry, and I'll release the fix soon. |
Description
I am unable to build with C++17 because my system lacks the span.h header file.
There is a reasonable substitute available here:
https://github.com/tcbrindle/span/blob/master/include/tcb/span.hpp
Copying this file to base/numerics/span.hpp and using quotes in base/numerics/byte_conversions.h solves the problem
When does the problem happen
Environment
Steps To Reproduce
cmake --build build --parallel
Log output
In file included from /home/third-party/sentry-native/external/crashpad/util/misc/uuid.cc:31:
/home/third-party/sentry-native/external/crashpad/third_party/mini_chromium/mini_chromium/base/numerics/byte_conversions.h:12:10: fatal error: span: No such file or directory
12 | #include
| ^~~~~~
compilation terminated.
make[2]: *** [crashpad_build/util/CMakeFiles/crashpad_util.dir/build.make:328: crashpad_build/util/CMakeFiles/crashpad_util.dir/misc/uuid.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:461: crashpad_build/util/CMakeFiles/crashpad_util.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
The text was updated successfully, but these errors were encountered: