Bazel
Add to your MODULE.bazel file:
bazel_dep(name = "portable_cc_toolchain", version = "2025.10.31")
toolchain = use_extension("@portable_cc_toolchain//:extensions.bzl", "toolchain")CMake
Add to your CMakeLists.txt file (before project):
FetchContent_Declare(
PortableCcToolchain
URL "https://github.com/CACI-International/cpp-toolchain/releases/download/v2025.10.31/cmake_portable_cc_toolchain-v2025.10.31.tar.gz"
SOURCE_DIR ${CMAKE_BINARY_DIR}/portable_cc_toolchain
URL_HASH SHA256=e7bb4f142fc10b49bcb42f9e5ad3b2551e355224ad35f391d54c828603df932a
)
FetchContent_MakeAvailable(PortableCcToolchain)To enable the toolchain, set CMAKE_TOOLCHAIN_FILE to portable_cc_toolchain/toolchain.cmake.
For cross-compiling, set CMAKE_TOOLCHAIN_FILE to portable_cc_toolchain/<target>.cmake (e.g. aarch64-unknown-linux-gnu.cmake)
Component Versions
These integrations use the following components:
| Component | Version |
|---|---|
| LLVM (clang) | 20.1.8 |
| libstdc++ | 15.2.1 |
| glibc | 2.17 |
| Linux kernel headers | 3.10.108 |
What's Changed
- Expose hide_symbols feature by @calebzulawski in #5
Full Changelog: v2025.09.29...v2025.10.31