Skip to content

Commit f318f49

Browse files
authored
Add macro configurations that vary options CI never builds [GH #348]
CI builds only linux-gcc-debug and linux-i686-gcc-debug, so 108 configuration options that other configurations set differently are never compiled or tested. Add four debug configurations that together change 90 of them. Of the other 18, 10 change only in a release build and 8 are run-time defaults that a test can set with an option. - linux-gcc-macos-like: the macOS (arm64) option values, kept on the Linux targets so the runtime library builds and the tests can run. - linux-gcc-windows-like: the Windows ABI (IA64_ABI=0) and production settings, also on the Linux targets. - linux-gcc-variants: options that should not change the output, plus long double as the host floating-point type. - linux-gcc-legacy: cfront, Sun and early GNU modes, no mmap, features turned off, and a SoftFloat binary128 long double. Without IA64_ABI, the linux_i686 target needs the non-IA-64 macros that src/defines_linux.h does not define, so the configurations set them. Without a 128-bit host floating-point type, __float128 cannot be enabled, but glibc's headers use it on x86-64, so the runtime library build of those configurations maps __float128 and _Float128 to the widest floating-point type they have.
1 parent baa8dc7 commit f318f49

28,069 files changed

Lines changed: 4322086 additions & 3280 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/build-and-test-ci.yml‎

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@
1212
# tests, and uninstrumented, for the test cache key) and then runs one test
1313
# leg per configuration; a test leg waits only on its own toolchain's builds:
1414
#
15-
# prepare ─┬─► linux-gcc-debug: build, hash ─► Test ×2 ─┬─► publish (on failure)
16-
# └─► linux-i686-gcc-debug: build, hash ─► Test ×2 ─┴─► coverage
15+
# prepare ─┬─► linux-gcc-debug: build, hash ─► Test ×2 ─┬─► publish
16+
# ├─► linux-i686-gcc-debug: build, hash ─► Test ×2 ─┤ (on failure)
17+
# ├─► linux-gcc-macos-like-debug: build, hash ─► Test ×2 ─┤
18+
# ├─► linux-gcc-windows-like-debug: build, hash ─► Test ×2 ─┤
19+
# ├─► linux-gcc-variants-debug: build, hash ─► Test ×2 ─┤
20+
# └─► linux-gcc-legacy-debug: build, hash ─► Test ×2 ─┴─► coverage
1721
# bench (pull requests only; independent)
1822
#
1923
# The prepare job computes the shared run timestamp and test-input hash that
@@ -135,6 +139,22 @@ jobs:
135139
build_dir: build/gcc-i686
136140
base: gcc-i686
137141
configs: '["edg_x86_32", "edg_x86_32_cp"]'
142+
- preset: linux-gcc-macos-like-debug
143+
build_dir: build/gcc-macos-like
144+
base: gcc
145+
configs: '["edg_macos_like", "edg_macos_like_cp"]'
146+
- preset: linux-gcc-windows-like-debug
147+
build_dir: build/gcc-windows-like
148+
base: gcc
149+
configs: '["edg_windows_like", "edg_windows_like_cp"]'
150+
- preset: linux-gcc-variants-debug
151+
build_dir: build/gcc-variants
152+
base: gcc
153+
configs: '["edg_variants", "edg_variants_cp"]'
154+
- preset: linux-gcc-legacy-debug
155+
build_dir: build/gcc-legacy
156+
base: gcc
157+
configs: '["edg_legacy", "edg_legacy_cp"]'
138158
uses: ./.github/workflows/ci-toolchain.yml
139159
with:
140160
preset: ${{ matrix.preset }}

‎CMakePresets.json‎

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,66 @@
186186
"CXX": "g++"
187187
}
188188
},
189+
{
190+
"name": "linux-gcc-macos-like-debug",
191+
"inherits": "linux-common",
192+
"displayName": "Linux (GCC) macOS-like Build Config - DEBUG",
193+
"description": "CI coverage build: Linux build using GCC with the macOS (arm64) host and feature choices",
194+
"binaryDir": "${sourceDir}/build/gcc-macos-like",
195+
"cacheVariables": {
196+
"EDG_MACRO_CONF": "linux-gcc-macos-like",
197+
"CMAKE_BUILD_TYPE": "Debug"
198+
},
199+
"environment": {
200+
"CC": "gcc",
201+
"CXX": "g++"
202+
}
203+
},
204+
{
205+
"name": "linux-gcc-windows-like-debug",
206+
"inherits": "linux-common",
207+
"displayName": "Linux (GCC) Windows-like Build Config - DEBUG",
208+
"description": "CI coverage build: Linux build using GCC with the Windows ABI and feature choices",
209+
"binaryDir": "${sourceDir}/build/gcc-windows-like",
210+
"cacheVariables": {
211+
"EDG_MACRO_CONF": "linux-gcc-windows-like",
212+
"CMAKE_BUILD_TYPE": "Debug"
213+
},
214+
"environment": {
215+
"CC": "gcc",
216+
"CXX": "g++"
217+
}
218+
},
219+
{
220+
"name": "linux-gcc-variants-debug",
221+
"inherits": "linux-common",
222+
"displayName": "Linux (GCC) variants Build Config - DEBUG",
223+
"description": "CI coverage build: Linux build using GCC with build-time variants no platform uses",
224+
"binaryDir": "${sourceDir}/build/gcc-variants",
225+
"cacheVariables": {
226+
"EDG_MACRO_CONF": "linux-gcc-variants",
227+
"CMAKE_BUILD_TYPE": "Debug"
228+
},
229+
"environment": {
230+
"CC": "gcc",
231+
"CXX": "g++"
232+
}
233+
},
234+
{
235+
"name": "linux-gcc-legacy-debug",
236+
"inherits": "linux-common",
237+
"displayName": "Linux (GCC) legacy Build Config - DEBUG",
238+
"description": "CI coverage build: Linux build using GCC with the Cfront ABI and legacy compatibility",
239+
"binaryDir": "${sourceDir}/build/gcc-legacy",
240+
"cacheVariables": {
241+
"EDG_MACRO_CONF": "linux-gcc-legacy",
242+
"CMAKE_BUILD_TYPE": "Debug"
243+
},
244+
"environment": {
245+
"CC": "gcc",
246+
"CXX": "g++"
247+
}
248+
},
189249
{
190250
"name": "linux-i686-gcc-debug",
191251
"inherits": "linux-common",
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
BACK_END_IS_C_GEN_BE=0
22
BACK_END_IS_CP_GEN_BE=1
3+
ALL_TEMPLATE_INFO_IN_IL=1
4+
PARENS_IN_IL=1
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import <linux-gcc/base>
2+
import <support/ci-variants/legacy>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import <linux-gcc/cdisp>
2+
import <support/ci-variants/legacy>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import <linux-gcc/cpfe-cp>
2+
import <support/ci-variants/legacy>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import <linux-gcc/cpfe>
2+
import <support/ci-variants/legacy>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import <linux-gcc/cpprtlib>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import <linux-gcc/base>
2+
import <support/ci-variants/macos-like>
3+
# --- language features macOS leaves off
4+
delete COROUTINE_ENABLING_POSSIBLE
5+
delete TIE_DEFAULT_GNU_ABI_VERSION_TO_GNU_VERSION
6+
delete BUILTIN_VA_LIST_OVERRIDE_TYPE_NAME
7+
delete ASSUME_THIS_CANNOT_BE_NULL_IN_CONDITIONAL_OPERATORS
8+
delete HANDLE_VIRTUAL_BASES_IN_SUBOBJECT_CTOR_DTORS
9+
# --- 128-bit host integers
10+
delete TYPE_FOR_AN_INTEGER_VALUE
11+
delete TYPE_FOR_A_SIGNED_INTEGER_VALUE
12+
delete TYPE_FOR_A_FIXED_POINT_VALUE
13+
# --- host floating point: long double is binary64, as on arm64 macOS
14+
delete FP_LONG_DOUBLE_IS_80BIT_EXTENDED
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import <linux-gcc/cdisp>
2+
import <support/ci-variants/macos-like>

0 commit comments

Comments
 (0)