Skip to main content

Module action

Module action 

Source
Expand description

Semantic build-action IR.

The planner emits these toolchain-independent action specs; the crate::lower() layer turns them into concrete command argv for a specific crate::Dialect. Nothing here names a compiler flag: the IR records intent (optimization level, debug info, defines, include directories, the source language) and each dialect spells it (-O2 vs /O2, -c vs /c, …). A new dialect is added in crate::lower() without this IR changing.

Structs§

ArchiveAction
Archive object files into a static library.
CompileAction
Compile one translation unit.
CompileArguments
Semantic arguments for a compile, with no flag spelled out.
LinkAction
Link objects and static archives into an executable.

Enums§

BuildAction
A single semantic build step: compile a translation unit, archive objects into a static library, or link an executable.
CompileMode
What a compile action should produce.