Commit 0e5ba65
committed
[cmake] Use CMAKE_CXX_SIMULATE_ID to distinguish MSVC ABI in Findzstd
Instead of unconditionally assuming MSVC-alike behavior for WIN32 that
could negatively impact MSVC, use `CMAKE_CXX_SIMULATE_ID` to detect
Clang using MSVC ABI. Note that this variable is unset for MSVC itself,
so use it alternatively to MSVC. Thanks to @isuruf for the suggestion
(conda-forge/llvmdev-feedstock#306 (comment)).1 parent 003686f commit 0e5ba65
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments