-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
(Remove) Workaround for STL#1300 intrin0.h issues #98
Comments
Workaround implemented in 4fbcddb, it's mostly contained within I wanted to avoid including a pre-patched In short, it uses logic similar to Clang's to locate the specific It will only do this if the Visual Studio version that'll be used by Clang is between 16.8 and 16.9 Preview 1, inclusive. If this affects your generator, you will get a parsing warning stating that the workaround was used. (This warning can be ignored, but I wanted to make it obvious Biohazrd has overridden one of your system headers so you know to come blame me if things go wrong rather than Visual Studio or Clang.) Biohazrd will output the patched Note that if you have the MSVC build tools on your PATH or run Biohazrd from a Visual Studio Developer Command Prompt, Clang will use that version instead but Biohazrd won't patch that version if it isn't the latest version. This shouldn't be an issue unless you have multiple affected versions of Visual Studio and the one in your environment is one of them but isn't the latest. |
Christmas came a little early this year and Visual Studio 16.9 Preview 2 was released today. I can confirm the deactivation logic included in this workaround worked as expected. |
Note: This workaround has been implemented, but is not considered something we want to keep long term. This issue is open to remind us to remove it eventually.
There exists an external issue where
intrin.h
and some headers which indirectly include it do not work correctly with libclang-based tools like Biohazrd. Attempting to compile code including these headers will result in an error similar to the following:It will be fixed in Visual Studio 2019 16.9 Preview 2, which is not currently public. To avoid requiring people to run older or preview versions of Visual Studio, Biohazrd will support automatically applying the necessary patch when it is applicable.
For more details:
The text was updated successfully, but these errors were encountered: