Skip to content

feature_libm

Functions:

build_libm_runtime_feature

build_libm_runtime_feature() -> RuntimeFeature
Source code in src/irx/builder/runtime/feature_libm.py
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@typechecked
def build_libm_runtime_feature() -> RuntimeFeature:
    """
    title: Build the libm runtime feature specification.
    returns:
      type: RuntimeFeature
    """
    return RuntimeFeature(
        name="libm",
        symbols={
            "sqrt": ExternalSymbolSpec("sqrt", _declare_sqrt),
        },
        linker_flags=("-lm",),
    )