@@ -16,6 +16,9 @@ module(
1616 compatibility_level = 1 ,
1717)
1818
19+ bazel_dep (name = "platforms" , version = "1.0.0" )
20+ bazel_dep (name = "score_bazel_platforms" , version = "0.0.4" )
21+
1922# SCORE bazel module dependencies
2023bazel_dep (name = "score_tooling" , version = "1.1.0" )
2124bazel_dep (name = "score_crates" , version = "0.0.6" )
@@ -24,9 +27,6 @@ bazel_dep(name = "score_crates", version = "0.0.6")
2427bazel_dep (name = "rules_rust" , version = "0.67.0" )
2528bazel_dep (name = "rules_rust_prost" , version = "0.67.0" )
2629
27- # C/C++ rules for Bazel
28- bazel_dep (name = "rules_cc" , version = "0.2.8" )
29-
3030# Protobuf
3131# Repo_name override is needed here for compatibility with WORKSPACE (e.g.for rules_rust_prost)
3232# Newer protobuf versions generate warnings during compilation which will cause the build failure due
@@ -42,50 +42,35 @@ bazel_dep(name = "googletest", version = "1.17.0")
4242bazel_dep (name = "score_docs_as_code" , version = "3.0.0" )
4343
4444# Toolchains
45- # GCC toolchain
46- bazel_dep (name = "score_toolchains_gcc" , version = "0.5" , dev_dependency = True )
45+ bazel_dep (name = "rules_cc" , version = "0.2.16" )
46+
47+ bazel_dep (name = "score_bazel_cpp_toolchains" , version = "0.2.2" , dev_dependency = True )
4748
48- gcc = use_extension ("@score_toolchains_gcc//extentions:gcc.bzl" , "gcc" , dev_dependency = True )
49+ # Extensions
50+ gcc = use_extension ("@score_bazel_cpp_toolchains//extensions:gcc.bzl" , "gcc" , dev_dependency = True )
4951gcc .toolchain (
50- sha256 = "457f5f20f57528033cb840d708b507050d711ae93e009388847e113b11bf3600" ,
51- strip_prefix = "x86_64-unknown-linux-gnu" ,
52- url = "https://github.com/eclipse-score/toolchains_gcc_packages/releases/download/0.0.1/x86_64-unknown-linux-gnu_gcc12.tar.gz" ,
52+ name = "score_gcc_x86_64_toolchain" ,
53+ target_cpu = "x86_64" ,
54+ target_os = "linux" ,
55+ use_default_package = True ,
56+ version = "12.2.0" ,
5357)
54-
55- # TODO to be moved to toolchain. https://github.com/eclipse-score/toolchains_gcc/issues/11
56- gcc .extra_features (
57- features = [
58- "minimal_warnings" ,
59- "treat_warnings_as_errors" ,
60- ],
58+ gcc .toolchain (
59+ name = "score_gcc_aarch64_toolchain" ,
60+ target_cpu = "aarch64" ,
61+ target_os = "linux" ,
62+ use_default_package = True ,
63+ version = "12.2.0" ,
6164)
62- gcc .warning_flags (
63- minimal_warnings = [
64- "-Wall" ,
65- "-Wno-error=deprecated-declarations" ,
66- ],
67- strict_warnings = [
68- "-Wextra" ,
69- "-Wpedantic" ,
70- ],
71- treat_warnings_as_errors = ["-Werror" ],
65+ use_repo (
66+ gcc ,
67+ "score_gcc_aarch64_toolchain" ,
68+ "score_gcc_x86_64_toolchain" ,
7269)
73- use_repo (gcc , "gcc_toolchain" , "gcc_toolchain_gcc" )
7470
7571# Rust toolchain
76- RUST_EDITION = "2024"
77-
78- RUST_VERSION = "1.93.0"
79-
80- # Shared Rust policies (Clippy config, etc.), overridden locally during development.
81- bazel_dep (name = "score_rust_policies" , version = "0.0.4" , dev_dependency = True )
82-
83- rust = use_extension ("@rules_rust//rust:extensions.bzl" , "rust" )
84- rust .toolchain (
85- edition = RUST_EDITION ,
86- versions = [RUST_VERSION ],
87- )
88- use_repo (rust , "rust_toolchains" )
72+ bazel_dep (name = "score_toolchains_rust" , version = "0.4.0" , dev_dependency = True )
73+ bazel_dep (name = "score_rust_policies" , version = "0.0.5" , dev_dependency = True )
8974
9075# Prost toolchain
9176register_toolchains ("//toolchain/prost:prost_toolchain" )
0 commit comments