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
[linux-port] Fix incorrect UUIDs on Linux #2796
Conversation
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.
Thanks for your contribution @nicebyte. LGTM. Please run clang-format on this file
When using libdxcompiler.so, UUIDs of classes don't match because on Linux a UUID is effectively an address of a static member variable. This change replaces UUIDs with a consistent value - a hash of the class name.
re-fromatted the file, PTAL. Thanks! |
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.
All the headaches that the previous UUID implementation caused me and now I'm kicking myself for not thinking of this! Thanks @nicebyte!
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.
Thanks
This reverts commit 34de0e3.
When using libdxcompiler.so, UUIDs of classes don't match
because on Linux a UUID is effectively an address of a
static member variable.
This change replaces UUIDs with a consistent value -
a hash of the class name.