|
2 | 2 | "version": 10, |
3 | 3 | "configurePresets": [ |
4 | 4 | { |
5 | | - "name": "llvm-brew", |
6 | | - "displayName": "LLVM (Homebrew)", |
7 | | - "description": "Use Homebrew LLVM compilers", |
8 | | - "binaryDir": "${sourceDir}/build/llvm-brew", |
| 5 | + "name": "ci-base", |
| 6 | + "hidden": true, |
| 7 | + "displayName": "CI Base", |
| 8 | + "description": "Base configuration for CI", |
9 | 9 | "generator": "Ninja", |
10 | | - "toolchainFile": "${sourceDir}/cmake/llvm-brew-toolchain.cmake", |
| 10 | + "binaryDir": "${sourceDir}/build/${presetName}", |
11 | 11 | "cacheVariables": { |
12 | 12 | "CMAKE_EXPORT_COMPILE_COMMANDS": "ON" |
13 | 13 | } |
14 | 14 | }, |
15 | 15 | { |
16 | | - "name": "gcc-brew", |
17 | | - "displayName": "GCC (Homebrew)", |
18 | | - "description": "Use Homebrew GCC compilers", |
19 | | - "binaryDir": "${sourceDir}/build/gcc-brew", |
20 | | - "generator": "Ninja", |
21 | | - "toolchainFile": "${sourceDir}/cmake/gcc-brew-toolchain.cmake", |
| 16 | + "name": "ci-debug-hardened", |
| 17 | + "inherits": "ci-base", |
| 18 | + "displayName": "CI Debug Hardened", |
22 | 19 | "cacheVariables": { |
23 | | - "CMAKE_EXPORT_COMPILE_COMMANDS": "ON" |
| 20 | + "CMAKE_BUILD_TYPE": "Debug", |
| 21 | + "CMAKE_CXX_FLAGS": "-Wall -Wextra -Wpedantic -Wformat -Wformat=2 -Wconversion -Wimplicit-fallthrough -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -fstrict-flex-arrays=3 -fstack-protector-strong" |
| 22 | + } |
| 23 | + }, |
| 24 | + { |
| 25 | + "name": "ci-release", |
| 26 | + "inherits": "ci-base", |
| 27 | + "displayName": "CI Release", |
| 28 | + "cacheVariables": { |
| 29 | + "CMAKE_BUILD_TYPE": "Release", |
| 30 | + "CMAKE_CXX_FLAGS": "-O3 -DNDEBUG -flto" |
| 31 | + } |
| 32 | + }, |
| 33 | + { |
| 34 | + "name": "ci-no-except-rtti", |
| 35 | + "inherits": "ci-base", |
| 36 | + "displayName": "CI No Exceptions/RTTI", |
| 37 | + "cacheVariables": { |
| 38 | + "CMAKE_BUILD_TYPE": "Release", |
| 39 | + "CMAKE_CXX_FLAGS": "-O3 -DNDEBUG -fno-exceptions -fno-rtti" |
24 | 40 | } |
25 | 41 | } |
26 | 42 | ], |
27 | 43 | "buildPresets": [ |
28 | 44 | { |
29 | | - "name": "llvm-brew", |
30 | | - "configurePreset": "llvm-brew" |
| 45 | + "name": "ci-debug-hardened", |
| 46 | + "configurePreset": "ci-debug-hardened" |
31 | 47 | }, |
32 | 48 | { |
33 | | - "name": "gcc-brew", |
34 | | - "configurePreset": "gcc-brew" |
| 49 | + "name": "ci-release", |
| 50 | + "configurePreset": "ci-release" |
| 51 | + }, |
| 52 | + { |
| 53 | + "name": "ci-no-except-rtti", |
| 54 | + "configurePreset": "ci-no-except-rtti" |
35 | 55 | } |
36 | 56 | ], |
37 | 57 | "testPresets": [ |
38 | 58 | { |
39 | | - "name": "llvm-brew", |
40 | | - "configurePreset": "llvm-brew", |
| 59 | + "name": "ci-debug-hardened", |
| 60 | + "configurePreset": "ci-debug-hardened", |
41 | 61 | "output": { |
42 | 62 | "outputOnFailure": true |
43 | 63 | }, |
|
46 | 66 | } |
47 | 67 | }, |
48 | 68 | { |
49 | | - "name": "gcc-brew", |
50 | | - "configurePreset": "gcc-brew", |
| 69 | + "name": "ci-release", |
| 70 | + "configurePreset": "ci-release", |
51 | 71 | "output": { |
52 | 72 | "outputOnFailure": true |
53 | 73 | }, |
54 | 74 | "execution": { |
55 | 75 | "stopOnFailure": true |
56 | 76 | } |
57 | | - } |
58 | | - ], |
59 | | - "workflowPresets": [ |
60 | | - { |
61 | | - "name": "llvm-brew", |
62 | | - "displayName": "LLVM (Homebrew) Workflow", |
63 | | - "description": "Configure and build using Homebrew LLVM", |
64 | | - "steps": [ |
65 | | - { |
66 | | - "type": "configure", |
67 | | - "name": "llvm-brew" |
68 | | - }, |
69 | | - { |
70 | | - "type": "build", |
71 | | - "name": "llvm-brew" |
72 | | - }, |
73 | | - { |
74 | | - "type": "test", |
75 | | - "name": "llvm-brew" |
76 | | - } |
77 | | - ] |
78 | 77 | }, |
79 | 78 | { |
80 | | - "name": "gcc-brew", |
81 | | - "displayName": "GCC (Homebrew) Workflow", |
82 | | - "description": "Configure and build using Homebrew GCC", |
83 | | - "steps": [ |
84 | | - { |
85 | | - "type": "configure", |
86 | | - "name": "gcc-brew" |
87 | | - }, |
88 | | - { |
89 | | - "type": "build", |
90 | | - "name": "gcc-brew" |
91 | | - }, |
92 | | - { |
93 | | - "type": "test", |
94 | | - "name": "gcc-brew" |
95 | | - } |
96 | | - ] |
| 79 | + "name": "ci-no-except-rtti", |
| 80 | + "configurePreset": "ci-no-except-rtti", |
| 81 | + "output": { |
| 82 | + "outputOnFailure": true |
| 83 | + }, |
| 84 | + "execution": { |
| 85 | + "stopOnFailure": true |
| 86 | + } |
97 | 87 | } |
98 | 88 | ] |
99 | 89 | } |
0 commit comments