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 build on FreeBSD i386 - nullptr vs VK_NULL_HANDLE #9138
Conversation
| @@ -47,7 +47,11 @@ extern "C" { | |||
| #define VK_HEADER_VERSION 121 | |||
|
|
|||
|
|
|||
| #if defined(__LP64__) || defined(_WIN64) || (defined(__x86_64__) && !defined(__ILP32__) ) || defined(_M_X64) || defined(__ia64) || defined (_M_IA64) || defined(__aarch64__) || defined(__powerpc64__) | |||
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.
Is this needed? 0 should work for both u64s and pointer types for comparison.
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.
Given this is modifying an externel header, this can also break the build if the headers are ever updated in the future (as new versions of the header won't contain this change).
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.
Right, that's probably not a good idea to have a local version of external code. I'll push an updated version of the patch not modifying Externals/.
|
Hello, Do those new changes seem reasonable now ? Unfortunately, I am neither a C++ expert, nor a Vulkan dev, so I may be totally wrong. I am just looking for a way to fix those build errors on i386. Any comment welcome ! Thanks in advance, |
|
Hello, Any comment on that new version of the patch ? |
|
Squash the commits then this looks good to me. |
a8d3755
to
e991f2a
Compare
|
Done, thanks! |
|
The commit message has a typo, "Instanciate". |
e991f2a
to
d456e2e
Compare
|
Commit message modified, thanks! |
Hello,
I am getting errors on FreeBSD i386 (12.1-RELEASE/LLVM 8.0.1) when trying to build Dolphin 5.0.12716:
This PR re-enables build for i386 (while still maintaining it buildable on amd64).
Warnings :
Best regards,
Ganael.