Skip to content

Commit 837bed3

Browse files
authored
Add config for GCC 15.3.0 (#117)
* Add config for GCC 15.3.0 The new configuration for gcc 15.3.0 is added to be available for developer testing. resolves: #100 * Add permissions for workflows Add permissions for workflows. * Add documentation for gcc15 Add in documentation info for gcc15.
1 parent 6ed5352 commit 837bed3

18 files changed

Lines changed: 363 additions & 12 deletions

File tree

‎.github/workflows/aarch64-linux.yml‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
# SPDX-License-Identifier: Apache-2.0
1212
# *******************************************************************************
1313
name: Bazel Build (Aarch64-Linux)
14+
permissions:
15+
contents: read
16+
actions: write
1417
on:
1518
pull_request:
1619
types: [opened, reopened, synchronize]
@@ -42,3 +45,24 @@ jobs:
4245
- name: Guardrail (no legacy features)
4346
run: |
4447
bazel test --config=aarch64-linux -- //:guardrail_tests
48+
generic-aarch64-linux-gcc15:
49+
runs-on: ubuntu-latest
50+
defaults:
51+
run:
52+
working-directory: ./tests
53+
steps:
54+
- name: Checkout Repository
55+
uses: actions/checkout@v6
56+
- name: Setup Bazel
57+
uses: bazel-contrib/setup-bazel@0.18.0
58+
with:
59+
bazelisk-cache: true
60+
disk-cache: ${{ github.job }}
61+
repository-cache: true
62+
cache-save: ${{ github.event_name == 'push' }}
63+
- name: Bazel Build (basic)
64+
run: |
65+
bazel build --config=aarch64-linux-gcc15 -- //:language_and_standards_tests //:feature_verification_tests
66+
- name: Guardrail (no legacy features)
67+
run: |
68+
bazel test --config=aarch64-linux-gcc15 -- //:guardrail_tests

‎.github/workflows/autosd.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
# SPDX-License-Identifier: Apache-2.0
1212
# *******************************************************************************
1313
name: Bazel Build (AutoSD 10)
14+
permissions:
15+
contents: read
16+
actions: write
1417
on:
1518
pull_request:
1619
types: [opened, reopened, synchronize]

‎.github/workflows/checks.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
# SPDX-License-Identifier: Apache-2.0
1212
# *******************************************************************************
1313
name: S-CORE CI Checks
14+
permissions:
15+
contents: read
16+
actions: write
1417
on:
1518
pull_request:
1619
push:

‎.github/workflows/ebclfsa.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
# SPDX-License-Identifier: Apache-2.0
1212
# *******************************************************************************
1313
name: Bazel Build (Aarch64-Linux)(ebclfsa)
14+
permissions:
15+
contents: read
16+
actions: write
1417
on:
1518
pull_request:
1619
types: [opened, reopened, synchronize]

‎.github/workflows/qnx.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
# SPDX-License-Identifier: Apache-2.0
1212
# *******************************************************************************
1313
name: Bazel Build (QNX)
14+
permissions:
15+
contents: read
16+
actions: write
1417
on:
1518
pull_request:
1619
types: [opened, reopened, synchronize]

‎.github/workflows/x86_64-linux.yml‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
# SPDX-License-Identifier: Apache-2.0
1212
# *******************************************************************************
1313
name: Bazel Build (x86_64-Linux)
14+
permissions:
15+
contents: read
16+
actions: write
1417
on:
1518
pull_request:
1619
types: [opened, reopened, synchronize]
@@ -48,3 +51,30 @@ jobs:
4851
- name: Bazel Test (force_pic)
4952
run: |
5053
bazel test --lockfile_mode=error --config=x86_64-linux --force_pic -- //feature_verification/opt_in_features:force_pic_flags_test
54+
generic-x86_64-linux-gcc15:
55+
runs-on: ubuntu-latest
56+
defaults:
57+
run:
58+
working-directory: ./tests
59+
steps:
60+
- name: Checkout Repository
61+
uses: actions/checkout@v6
62+
- name: Setup Bazel
63+
uses: bazel-contrib/setup-bazel@0.18.0
64+
with:
65+
bazelisk-cache: true
66+
disk-cache: ${{ github.job }}
67+
repository-cache: true
68+
cache-save: ${{ github.event_name == 'push' }}
69+
- name: Bazel Build (basic)
70+
run: |
71+
bazel build --lockfile_mode=error --config=x86_64-linux-gcc15 -- //:language_and_standards_tests //:feature_verification_tests
72+
- name: Guardrail (no legacy features)
73+
run: |
74+
bazel test --lockfile_mode=error --config=x86_64-linux-gcc15 -- //:guardrail_tests
75+
- name: Bazel Test
76+
run: |
77+
bazel test --lockfile_mode=error --config=x86_64-linux-gcc15 -- //:language_and_standards_tests //:feature_verification_tests
78+
- name: Bazel Test (force_pic)
79+
run: |
80+
bazel test --lockfile_mode=error --config=x86_64-linux-gcc15 --force_pic -- //feature_verification/opt_in_features:force_pic_flags_test

‎MODULE.bazel‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ bazel_dep(name = "bazel_skylib", version = "1.8.2")
2222
# Constraint values for specifying platforms and toolchains
2323
# *******************************************************************************
2424
bazel_dep(name = "platforms", version = "1.1.0")
25-
bazel_dep(name = "score_bazel_platforms", version = "0.1.2")
25+
bazel_dep(name = "score_bazel_platforms", version = "1.0.0")
2626

2727
# *******************************************************************************
2828
# C++ Rules for Bazel

‎MODULE.bazel.lock‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/extension_api.md‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ Required attributes:
6161
Common package selection attributes:
6262

6363
- `use_default_package`: resolve package metadata from `packages/version_matrix.bzl`
64-
- `version`: GCC version string for Linux toolchains
64+
- `version`: GCC version string for Linux toolchains (e.g. `12.2.0` or `15.3.0` —
65+
see `packages/version_matrix.bzl` for all versions currently packaged)
6566
- `sdp_version`: QNX SDP version string
6667
- `sdk_version`: alternative SDK identifier used in matrix resolution
6768
- `sdp_to_link`: override the package repository name that the toolchain uses
@@ -121,8 +122,13 @@ configuration such as:
121122
--extra_toolchains=@score_gcc_toolchain//:x86_64-linux-gcc_12.2.0
122123
```
123124

125+
A newer GCC 15.3.0 toolchain is packaged as well; activate it the same way by
126+
referencing its generated label (e.g.
127+
`--extra_toolchains=@score_gcc_toolchain_15//:x86_64-linux-gcc_15.3.0`).
128+
124129
The test workspace under `tests/` provides complete `.bazelrc`
125-
configurations for this activation step.
130+
configurations for this activation step, including a `x86_64-linux-gcc15` /
131+
`aarch64-linux-gcc15` config pair for the GCC 15.3.0 toolchain.
126132

127133
## Migrating Downstream Workspaces
128134

‎docs/migration_guide.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ gcc.toolchain(
189189
use_repo(gcc, "score_gcc_toolchain")
190190
```
191191

192+
> GCC 15.3.0 is available too — set `version = "15.3.0"` instead. See
193+
> [Extension API](extension_api.md#gcctoolchain-attributes) for details.
194+
192195
These flow through the `extra_compile_flags`, `extra_c_compile_flags`,
193196
`extra_cxx_compile_flags`, and `extra_link_flags` hooks documented in
194197
[Extension API](extension_api.md) and [Toolchain features](features.md). Use them

0 commit comments

Comments
 (0)