Skip to content

Commit

Permalink
Add 'clangcl' presets to compile with clang-cl.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkSchofield committed Oct 12, 2023
1 parent 033df49 commit 0217cfb
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions example/CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,22 @@
},
"binaryDir": "${sourceDir}/__output/${presetName}"
},
{
"name": "windows-clangcl",
"inherits": "windows",
"hidden": true,
"displayName": "Windows-only configuration",
"description": "This build is only available on Windows",
"generator": "Ninja Multi-Config",
"cacheVariables": {
"CMAKE_C_COMPILER_FRONTEND_VARIANT": "MSVC",
"CMAKE_CXX_COMPILER_FRONTEND_VARIANT": "MSVC",
"CMAKE_TOOLCHAIN_FILE": "../Windows.Clang.toolchain.cmake",
"CMAKE_VS_VERSION_RANGE": "[16.0,18.0)",
"CMAKE_VS_VERSION_PRERELEASE": "ON"
},
"binaryDir": "${sourceDir}/__output/${presetName}"
},
{
"name": "ewdk",
"displayName": "EWDK configuration",
Expand Down Expand Up @@ -110,6 +126,24 @@
"CMAKE_SYSTEM_PROCESSOR": "AMD64",
"CLANG_TIDY_CHECKS": "bugprone*,-bugprone-easily-swappable-parameters"
}
},
{
"name": "windows-clangcl-x64",
"inherits": "windows-clangcl",
"displayName": "Configure for 'windows-clangcl-x64'",
"binaryDir": "${sourceDir}/__output/${presetName}",
"cacheVariables": {
"CMAKE_SYSTEM_PROCESSOR": "x64"
}
},
{
"name": "windows-clangcl-amd64",
"inherits": "windows-clangcl",
"displayName": "Configure for 'windows-clangcl-amd64'",
"binaryDir": "${sourceDir}/__output/${presetName}",
"cacheVariables": {
"CMAKE_SYSTEM_PROCESSOR": "AMD64"
}
}
],
"buildPresets": [
Expand Down Expand Up @@ -137,6 +171,14 @@
"name": "windows-clang-amd64",
"configurePreset": "windows-clang-amd64"
},
{
"name": "windows-clangcl-x64",
"configurePreset": "windows-clangcl-x64"
},
{
"name": "windows-clangcl-amd64",
"configurePreset": "windows-clangcl-amd64"
},
{
"name": "ewdk",
"configurePreset": "ewdk"
Expand Down

0 comments on commit 0217cfb

Please sign in to comment.