Revision d523b8325857e4cd6f298ec9f356432676c81edb authored by Steven Johnson on 13 March 2021, 00:54:23 UTC, committed by GitHub on 13 March 2021, 00:54:23 UTC
(1) Both the 'deprecated' and new, non-deprecated variants existed back to at least LLVM10, and the deprecated variant was commented as deprecated at that point as well; the change in LLVM13 is that they are now annotated with LLVM_ATTRIBUTE_DEPRECATED so we get compiler warnings (and thus errors). (2) The fixes are simply replicating what the old, deprecated methods did internally.
1 parent c3882a5
CMakePresets.json
{
"version": 1,
"cmakeMinimumRequired": {
"major": 3,
"minor": 16,
"patch": 0
},
"configurePresets": [
{
"name": "gcc-debug",
"displayName": "GCC (Debug)",
"description": "Debug build using Ninja generator and GCC-compatible compiler",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_FLAGS_RELEASE": "-O2",
"CMAKE_CXX_FLAGS_RELWITHDEBINFO": "-O2 -g",
"CMAKE_CXX_FLAGS_MINSIZEREL": "-Os"
}
},
{
"name": "gcc-release",
"inherits": "gcc-debug",
"displayName": "GCC (Release)",
"description": "Release build using Ninja generator and GCC-compatible compiler",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "msvc-debug",
"displayName": "MSVC (Debug)",
"description": "Debug build using Ninja generator and MSVC with vcpkg dependencies.",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
}
},
{
"name": "msvc-release",
"displayName": "MSVC (Release)",
"description": "Debug build using Ninja generator and MSVC with vcpkg dependencies.",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
}
},
{
"name": "win32",
"displayName": "Win32 (Visual Studio)",
"description": "Visual Studio-based Win32 build with vcpkg dependencies.",
"generator": "Visual Studio 16 2019",
"architecture": "Win32",
"toolset": "host=x64",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
}
},
{
"name": "win64",
"displayName": "Win64 (Visual Studio)",
"description": "Visual Studio-based Win64 build with vcpkg dependencies.",
"generator": "Visual Studio 16 2019",
"architecture": "x64",
"toolset": "host=x64",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
}
}
]
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...