Skip to content
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

doNotOptimizeAway() using MSVC implementation with clang compiler #111

Open
Andersama opened this issue Jun 9, 2024 · 0 comments
Open

Comments

@Andersama
Copy link

Andersama commented Jun 9, 2024

Just a heads up, if someone configures MSVC to use the clang compiler, both _MSC_VER and __CLANG__ are defined.

So when testing for the MSVC compiler specifically you should test for the __CLANG__ define first, then check _MSC_VER.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant