Skip to content

Commit 3ce392a

Browse files
1 parent eca3d1e commit 3ce392a

File tree

6 files changed

+121
-1
lines changed

6 files changed

+121
-1
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
module(
2+
name = "portable_cc_toolchain",
3+
version = "2025.11.14",
4+
)
5+
6+
bazel_dep(name = "rules_cc", version = "0.2.8")
7+
bazel_dep(name = "platforms", version = "1.0.0")
8+
bazel_dep(name = "bazel_skylib", version = "1.8.1")
9+
bazel_dep(name = "aspect_bazel_lib", version = "2.20.0")
10+
11+
# https://github.com/abseil/abseil-cpp/pull/1794
12+
bazel_dep(name = "abseil-cpp", version = "20250127.1", repo_name = None)
13+
14+
bazel_dep(name = "stardoc", version = "0.8.0", dev_dependency = True)
15+
16+
# https://github.com/bazelbuild/bazel/issues/24426#issuecomment-2574862618
17+
bazel_dep(name = "re2", version = "2024-07-02.bcr.1", dev_dependency = True)
18+
19+
host_platform = use_extension("@platforms//host:extension.bzl", "host_platform")
20+
use_repo(host_platform, "host_platform")
21+
22+
assets = use_extension("//detail/assets:assets.bzl", "assets")
23+
use_repo(assets, "llvm-x86_64-unknown-linux-gnu")
24+
use_repo(assets, "llvm-aarch64-unknown-linux-gnu")
25+
use_repo(assets, "llvm-arm64-apple-macos")
26+
use_repo(assets, "llvm-x86_64-apple-macos")
27+
use_repo(assets, "llvm-x86_64-pc-windows-msvc")
28+
use_repo(assets, "sysroot-x86_64-unknown-linux-gnu")
29+
use_repo(assets, "sysroot-aarch64-unknown-linux-gnu")
30+
use_repo(assets, "sysroot-armv7-unknown-linux-gnueabihf")
31+
use_repo(assets, "sysroot-x86_64-unknown-linux-musl")
32+
use_repo(assets, "sysroot-aarch64-unknown-linux-musl")
33+
34+
xcode = use_extension("//detail/xcode:find.bzl", "extension")
35+
use_repo(xcode, "xcode-macosx")
36+
use_repo(xcode, "xcode-iphoneos")
37+
use_repo(xcode, "xcode-appletvos")
38+
use_repo(xcode, "xcode-xros")
39+
40+
windows = use_extension("//detail/windows:find.bzl", "extension")
41+
use_repo(windows, "winsysroot")
42+
43+
# Register the toolchain
44+
toolchain = use_extension("//:extensions.bzl", "toolchain")
45+
use_repo(toolchain, "toolchains")
46+
47+
register_toolchains("@toolchains//...")
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"mediaType": "application/vnd.build.bazel.registry.attestation+json;version=1.0.0",
3+
"attestations": {
4+
"source.json": {
5+
"url": "https://github.com/CACI-International/cpp-toolchain/releases/download/v2025.11.14/source.json.intoto.jsonl",
6+
"integrity": "sha256-V6fYt1q86GivJhHzmShszHfgqroB4No/tDh3i0/08Mg="
7+
},
8+
"MODULE.bazel": {
9+
"url": "https://github.com/CACI-International/cpp-toolchain/releases/download/v2025.11.14/MODULE.bazel.intoto.jsonl",
10+
"integrity": "sha256-VbfUse1ApV9UYWPzAwOLJZjRfOUyunkxUjKcOpqNXiA="
11+
},
12+
"bazel_portable_cc_toolchain-v2025.11.14.tar.gz": {
13+
"url": "https://github.com/CACI-International/cpp-toolchain/releases/download/v2025.11.14/bazel_portable_cc_toolchain-v2025.11.14.tar.gz.intoto.jsonl",
14+
"integrity": "sha256-TL/3p0K3+HAvcmMl7gdFxnGlrli45dYHy7EOA9dxwro="
15+
}
16+
}
17+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
===================================================================
2+
--- a/MODULE.bazel
3+
+++ b/MODULE.bazel
4+
@@ -1,7 +1,7 @@
5+
module(
6+
name = "portable_cc_toolchain",
7+
- version = "0.0.0",
8+
+ version = "2025.11.14",
9+
)
10+
11+
bazel_dep(name = "rules_cc", version = "0.2.8")
12+
bazel_dep(name = "platforms", version = "1.0.0")
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
matrix:
2+
platform:
3+
- debian10
4+
- ubuntu2004
5+
- macos
6+
- macos_arm64
7+
bazel:
8+
- 8.x
9+
- 7.x
10+
tasks:
11+
verify_targets:
12+
name: Verify build targets
13+
platform: ${{ platform }}
14+
bazel: ${{ bazel }}
15+
build_targets:
16+
- '@portable_cc_toolchain//:default_toolchain'
17+
bcr_test_module:
18+
module_path: test
19+
matrix:
20+
platform:
21+
- debian10
22+
- ubuntu2004
23+
- macos
24+
- macos_arm64
25+
bazel:
26+
- 8.x
27+
- 7.x
28+
tasks:
29+
run_test_module:
30+
name: Run test module
31+
platform: ${{ platform }}
32+
bazel: ${{ bazel }}
33+
build_targets:
34+
- //...
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"url": "https://github.com/CACI-International/cpp-toolchain/releases/download/v2025.11.14/bazel_portable_cc_toolchain-v2025.11.14.tar.gz",
3+
"strip_prefix": "portable_cc_toolchain-2025.11.14",
4+
"integrity": "sha256-XrYYHukCtALxlQRkMTUB77zjFgJDJtyHy8ZVwy4hQ3s=",
5+
"patches": {
6+
"module_dot_bazel_version.patch": "sha256-IG0gMnyxOg2WfnajnVtTiaFgANqBu9pqn5+1rECByqs="
7+
},
8+
"patch_strip": 1
9+
}

modules/portable_cc_toolchain/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"2025.08.06",
2121
"2025.09.15",
2222
"2025.09.29",
23-
"2025.10.31"
23+
"2025.10.31",
24+
"2025.11.14"
2425
],
2526
"yanked_versions": {}
2627
}

0 commit comments

Comments
 (0)