Loom C API
Public Loom compiler C API
Loading...
Searching...
No Matches
configured.h File Reference

Build-configured compiler target package. More...

Go to the source code of this file.

Functions

loomc_status_t loomc_target_environment_create_configured (loomc_allocator_t allocator, loomc_target_environment_t **out_target_environment)
 Creates an environment containing every configured compiler target.

Detailed Description

Build-configured compiler target package.

This optional package joins every artifact-capable target extension selected by the Loom build configuration. Programs needing only one target family should link that family's package directly instead.

Function Documentation

◆ loomc_target_environment_create_configured()

loomc_status_t loomc_target_environment_create_configured ( loomc_allocator_t allocator,
loomc_target_environment_t ** out_target_environment )

Creates an environment containing every configured compiler target.

The environment contains only target packages linked into this optional join. It does not probe devices or load platform runtimes.

Parameters
allocatorHost allocator used for target-environment storage.
out_target_environmentReceives one retained environment on success.
Returns
OK when the target environment was created.
Ownership
The caller releases the returned reference with loomc_target_environment_release. The environment may be shared across compiler instances and worker threads.