Skip to content

INSTALLATION🔗


MOLD

Command Line Tool🔗

Compile the source code🔗

Use Alire to get and build the mold crate from the Alire community index.

get & compile
    alr index --update-all    # if needed
    alr get --build mold

There is no install procedure (yet) You have to manually copy mold_*/bin/mold somewhere in your PATH to make it available in your system (preferably in /usr/local/bin/ or similar).

Examples🔗

The examples directory that comes with the source code contains lot of scripts, a very useful source of inspiration.


MOLD

Ada Library🔗

Compile the source code🔗

Use Alire to get and build the mold_lib crate from the Alire community index:

build
    alr index --update-all    # if needed
    alr get --build mold_lib

Run the unit tests🔗

To build and run the unis tests:

unit tests
    cd mold_lib_*/tests
    alr build
    ./bin/mold_lib_tests
Remember to clean the suite directory to run the unit tests again with git clean -dfx suite.

Integrate into your Ada project🔗

This allows you to integrate the mold_lib crate into your Ada project:

dependency
    alr index --update-all    # if needed
    alr with mold_lib

Please refer to the Alire documentation for more information.