GCC
Configuration
gccToolchain()
gccToolchain(version, opts = {})
Declare a gcc toolchain version and optionally set it as the default. toolchain release version on Linux (e.g. "2025.08-1"), WinLibs release tag on Windows (e.g. "16.1.0posix-14.0.0-ucrt-r4") — see requireSupportedPlatform's own comment for why these don't share a vocabulary. A plain string is used as-is for whichever platform is active; pass an object keyed by os to pin both platforms from one call (see this module's own pinned default at the bottom of the file). matching lockfile entry (warns instead of failing). Address of a workspace-owned lockfile instead of the shipped one; a plain string applies to the active platform, an object keyed by os pins each.
| Parameter | Type | Description |
|---|---|---|
| version | string | {linux?: string, windows?: string} |
| [opts] | object | |
| [opts.default=false] | boolean | |
| [opts.unverified=false] | boolean | Allow downloading without a |
| [opts.lockfile] | string | {linux?: string, windows?: string} |
Returns: object Target handle for this gcc toolchain.