Skip to content

Commit 8b04f8a

Browse files
committed
Bump version of GCC toolchains and add cpp policies
With new version of toolchains we also need to add score_cpp_policies.
1 parent 535763f commit 8b04f8a

2 files changed

Lines changed: 32 additions & 1 deletion

File tree

bazel_common/score_gcc_toolchains.MODULE.bazel

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,31 @@
1111
# SPDX-License-Identifier: Apache-2.0
1212
# *******************************************************************************
1313

14-
bazel_dep(name = "score_bazel_cpp_toolchains", version = "0.5.4")
14+
bazel_dep(name = "score_bazel_cpp_toolchains", version = "1.0.2")
15+
bazel_dep(name = "score_cpp_policies", version = "0.1.1")
1516

1617
gcc = use_extension("@score_bazel_cpp_toolchains//extensions:gcc.bzl", "gcc", dev_dependency = True)
1718
gcc.toolchain(
1819
name = "score_gcc_x86_64_toolchain",
20+
extra_known_features = [
21+
"@score_cpp_policies//warnings/gcc/features:minimal_warnings",
22+
"@score_cpp_policies//warnings/gcc/features:strict_warnings",
23+
"@score_cpp_policies//warnings/gcc/features:all_wall_warnings",
24+
"@score_cpp_policies//warnings/gcc/features:warnings_as_errors",
25+
],
1926
target_cpu = "x86_64",
2027
target_os = "linux",
2128
use_default_package = True,
2229
version = "12.2.0",
2330
)
2431
gcc.toolchain(
2532
name = "score_ebclfsa_toolchain",
33+
extra_known_features = [
34+
"@score_cpp_policies//warnings/gcc/features:minimal_warnings",
35+
"@score_cpp_policies//warnings/gcc/features:strict_warnings",
36+
"@score_cpp_policies//warnings/gcc/features:all_wall_warnings",
37+
"@score_cpp_policies//warnings/gcc/features:warnings_as_errors",
38+
],
2639
runtime_ecosystem = "ebclfsa",
2740
sdk_version = "0.1.0",
2841
target_cpu = "aarch64",
@@ -33,6 +46,12 @@ gcc.toolchain(
3346
## AutoSD10 Toolchain
3447
gcc.toolchain(
3548
name = "score_autosd10_x86_64_toolchain",
49+
extra_known_features = [
50+
"@score_cpp_policies//warnings/gcc/features:minimal_warnings",
51+
"@score_cpp_policies//warnings/gcc/features:strict_warnings",
52+
"@score_cpp_policies//warnings/gcc/features:all_wall_warnings",
53+
"@score_cpp_policies//warnings/gcc/features:warnings_as_errors",
54+
],
3655
runtime_ecosystem = "autosd10",
3756
target_cpu = "x86_64",
3857
target_os = "linux",

bazel_common/score_qnx_toolchains.MODULE.bazel

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
qcc = use_extension("@score_bazel_cpp_toolchains//extensions:gcc.bzl", "gcc", dev_dependency = True)
1414
qcc.toolchain(
1515
name = "score_qcc_aarch64_toolchain",
16+
extra_known_features = [
17+
"@score_cpp_policies//warnings/gcc/features:minimal_warnings",
18+
"@score_cpp_policies//warnings/gcc/features:strict_warnings",
19+
"@score_cpp_policies//warnings/gcc/features:all_wall_warnings",
20+
"@score_cpp_policies//warnings/gcc/features:warnings_as_errors",
21+
],
1622
sdp_version = "8.0.0",
1723
target_cpu = "aarch64",
1824
target_os = "qnx",
@@ -21,6 +27,12 @@ qcc.toolchain(
2127
)
2228
qcc.toolchain(
2329
name = "score_qcc_x86_64_toolchain",
30+
extra_known_features = [
31+
"@score_cpp_policies//warnings/gcc/features:minimal_warnings",
32+
"@score_cpp_policies//warnings/gcc/features:strict_warnings",
33+
"@score_cpp_policies//warnings/gcc/features:all_wall_warnings",
34+
"@score_cpp_policies//warnings/gcc/features:warnings_as_errors",
35+
],
2436
sdp_version = "8.0.0",
2537
target_cpu = "x86_64",
2638
target_os = "qnx",

0 commit comments

Comments
 (0)