abla/build
Generated from source.
Import with import "abla/build".
Source: abla/build/entry.ab
buildProgram (compile.fun)
compile fun buildProgram(
name: string,
entry: string,
output: string,
target: string,
artifact: string,
fast: bool,
cache: bool
): bool
Framework-neutral programmable-build helpers. Platform packages compose these primitives; the compiler itself does not know their policies. Builds entry as named program name for target, writing the requested artifact to output. fast selects fast compilation and cache permits caching. Returns whether the compiler accepted the build node. It compiles the graph after evaluation.
defineTarget (compile.fun)
compile fun defineTarget(
name: string,
llvmTriple: string,
objectFormat: string,
linkerFlavor: string,
linkerEmulation: string,
hosted: bool,
libcFree: bool
): bool
Registers target name with its llvmTriple, objectFormat, linker flavor and emulation, and hosted and libc-free policies. Returns whether the compiler accepted the target.
defineTargetSdk (compile.fun)
compile fun defineTargetSdk(name: string, sdk: string): bool
Returns true if the build graph accepts the SDK association for the named target.
defineTargetLinkInput (compile.fun)
compile fun defineTargetLinkInput(name: string, path: string, asNeeded: bool = false): bool
Returns true if the build graph accepts the ELF link input. With asNeeded, a shared library is retained only if used.
exportFunction (compile.fun)
compile fun exportFunction(
sourceName: string,
foreignName: string
): bool
Looks up sourceName and exports it under ABI symbol foreignName. Returns whether the compiler accepted the export.
internalFunction (compile.fun)
compile fun internalFunction(
sourceName: string,
linkName: string
): bool
Give a foreign-ABI adapter a stable object symbol without exposing it outside the LLVM unit. This is useful for inline/module assembly references; ordinary typed Abla calls should keep using the source function directly.
requiredInternalFunction (compile.fun)
compile fun requiredInternalFunction(
sourceName: string,
linkName: string
): bool
Retain a local implementation for a symbol that LLVM or the target backend can introduce after source/assembly reachability has closed. This does not publish the symbol in the artifact ABI.
exportCheckedFunction (compile.fun)
compile fun exportCheckedFunction(
sourceName: string,
foreignName: string
): bool
Looks up sourceName and returns whether the compiler accepts it under foreignName with checked export handling.
Built from Abla v0.2.79 source ba5d6b7d. Examples and generated signatures follow that source revision.