• OctoMY API
  • OctoMY API Reference
  • toolchain Namespace
  • toolchain Namespace

    Builds and caches the compiler components that native and firmware builds compile against. More...

    Header: #include <toolchain>
    Since: Phase 20a

    Classes

    (since Phase 20a) class BootstrapWorker
    (since Phase 20c) class CompilerInterface
    (since Phase 20c) struct Component
    (since Phase 20a) struct ComponentArtefact
    (since Phase 20c) struct ComponentBuildContext
    (since Phase 20a) class Manifest
    (since Phase 20c) class NullCompilerInterface
    (since Phase 20a) class SysrootHandle
    (since Phase 20c) struct Toolchain
    (since Phase 20a) class ToolchainBootstrapService
    (since Phase 20a) class ToolchainRegistry

    Detailed Description

    libtoolchain assembles a toolchain for a target from components such as compiler-rt, avr-libc and captured C++ headers. ToolchainBootstrapService builds each component in the background, keeps the results in an on-disk cache, and hands a consumer a SysrootHandle when every component it needs is ready.

    Classes

    class BootstrapWorker

    Single worker thread that runs Component recipes serially. More...

    class CompilerInterface

    Abstraction over the underlying compiler/archiver. More...

    class Component

    One buildable toolchain component (compiler-rt, avr-libc, etc.). More...

    class ComponentArtefact

    What one built or staged Component contributes to a SysrootHandle. More...

    class ComponentBuildContext

    Per-build state handed to each Component's recipe callable. More...

    class Manifest

    On-disk JSON record of every component's bootstrap state. More...

    class NullCompilerInterface

    Test/fixture compiler that records calls without doing real work. More...

    class SysrootHandle

    Consumer-facing aggregate of every component a Toolchain depends on. More...

    class Toolchain

    Top-level manifest for one assembled toolchain. More...

    class ToolchainBootstrapService

    Lazy + async orchestration of every toolchain's component builds. More...

    class ToolchainRegistry

    Process-wide registry of every Component + Toolchain shipped with OctoMY. More...