Remove win32 preset, make x64 the default on Windows

This commit is contained in:
Louis Gombert 2024-06-23 14:02:26 +02:00
parent 97540db0ae
commit 79a59f25e4
3 changed files with 8 additions and 41 deletions

View File

@ -22,12 +22,7 @@ jobs:
matrix:
os:
- runner: windows-latest
preset: win32
cc: cl
cxx: cl
name: Windows-x86
- runner: windows-latest
preset: win64
preset: win
cc: cl
cxx: cl
name: Windows-x64
@ -80,7 +75,7 @@ jobs:
- uses: ilammy/msvc-dev-cmd@v1
if: ${{ matrix.os.runner == 'windows-latest' }}
with:
arch: ${{ matrix.os.preset }}
arch: win64
- name: Configure CMake
env:

View File

@ -7,25 +7,7 @@
"binaryDir": "${sourceDir}/builds/${presetName}"
},
{
"name": "win32",
"inherits": "defaults",
"generator": "Ninja Multi-Config",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"architecture": {
"strategy": "external",
"value": "x86"
},
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x86-windows-static-md"
},
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
},
{
"name": "win64",
"name": "win",
"inherits": "defaults",
"generator": "Ninja Multi-Config",
"condition": {
@ -65,12 +47,8 @@
],
"buildPresets": [
{
"name": "win32",
"configurePreset": "win32"
},
{
"name": "win64",
"configurePreset": "win64"
"name": "win",
"configurePreset": "win"
},
{
"name": "mac",
@ -90,16 +68,10 @@
}
},
{
"name": "win32",
"inherits": "defaults",
"description": "Testing under Windows x86",
"configurePreset": "win32"
},
{
"name": "win64",
"name": "win",
"inherits": "defaults",
"description": "Testing under Windows x64",
"configurePreset": "win64"
"configurePreset": "win"
},
{
"name": "mac",

View File

@ -454,7 +454,7 @@ int main(int argc, char *argv[]) {
#elif defined(WIN32)
"Windows",
#else
"Linux",
"Linux",
#endif
#ifdef DEDICATED