From 8b9a0768a2ee727fe757de51e8e14e46f7c9b580 Mon Sep 17 00:00:00 2001 From: jadebenn Date: Tue, 3 Dec 2024 20:30:09 -0600 Subject: [PATCH] trying to enable clang for windows msvc --- CMakePresets.json | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/CMakePresets.json b/CMakePresets.json index c4595ed5..8b2bf6b4 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -78,6 +78,19 @@ "value": "x64" } }, + { + "name": "windows-msvc-clang", + "inherits": [ + "windows-msvc", + "clang-config" + ], + "displayName": "EXPERIMENTAL - [Multi] Windows (MSVC - Clang)", + "description": "Create a build using the Clang toolchain for MSVC", + "binaryDir": "${sourceDir}/build/msvc-clang", + "environment": { + "CMAKE_GENERATOR_TOOLSET": "ClangCL" + } + }, { "name": "linux-config", "inherits": "default", @@ -199,6 +212,30 @@ "description": "This preset is used to build in release mode using the MSVC toolchain on Windows", "configuration": "Release" }, + { + "name": "windows-msvc-clang-debug", + "inherits": "default", + "configurePreset": "windows-msvc-clang", + "displayName": "EXPERIMENTAL - [Debug] Windows (MSVC - Clang)", + "description": "This preset is used to build in debug mode using the Clang toolchain on Windows MSVC", + "configuration": "Debug" + }, + { + "name": "windows-msvc-clang-relwithdebinfo", + "inherits": "default", + "configurePreset": "windows-msvc-clang", + "displayName": "EXPERIMENTAL - [RelWithDebInfo] Windows (MSVC - Clang)", + "description": "This preset is used to build in debug mode using the Clang toolchain on Windows MSVC", + "configuration": "RelWithDebInfo" + }, + { + "name": "windows-msvc-clang-release", + "inherits": "default", + "configurePreset": "windows-msvc-clang", + "displayName": "EXPERIMENTAL - [Release] Windows (MSVC - Clang)", + "description": "This preset is used to build in release mode using the Clang toolchain on Windows MSVC", + "configuration": "Release" + }, { "name": "linux-clang-debug", "inherits": "default",