optick icon indicating copy to clipboard operation
optick copied to clipboard

Detect clang-cl as MSVC

Open garyttierney opened this issue 4 years ago • 1 comments

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 avatar May 06 '21 18:05 garyttierney

Fixes https://github.com/bombomby/optick/issues/104.

garyttierney avatar May 06 '21 20:05 garyttierney