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

Detect clang-cl as MSVC #129

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

garyttierney
Copy link

The compiler identification checks in src/optick.h currently assume the
user is on a Unix platform is compiling with Clang. This isn't the case
when using Clang's MSVC compatible frontend (clang-cl).

This is a simple fix that checks for MSVC first, which both cl.exe
and clang-cl.exe will identify as.

The compiler identification checks in src/optick.h currently assume the
user is on a Unix platform is compiling with Clang. This isn't the case
when using Clang's MSVC compatible frontend (clang-cl).

This is a simple fix that checks for MSVC first, which both cl.exe
and clang-cl.exe will identify as.
@garyttierney
Copy link
Author

Fixes #104.

Copy link

@JonnyPtn JonnyPtn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me!

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

Successfully merging this pull request may close these issues.

2 participants