compiler

Name

compiler  --  check that a compiler exists and its version

Synopsis

compiler {executable} [rev=revision]

Description

compiler checks that the compiler executable exists and tries to figure out its version by executing it.

If rev=revision is given and no installed compiler of version revision can be found, compiler will exit issuing an error message. If the compiler version and revision match, or if no revision is given and executable can be executed, compiler will add the directory of executable to PATH in the generated Makefile and envfile.

If the --disable-compiler-check is given to the script, compiler will do nothing.

Options

rev=revision

The revision of the compiler to use. If revision begins with ">=", greater or equal compiler versions are accepted.

Caveats

In many shells you need to escape characters such as '>'; Use single or double quotes around revision if it contains ">=".

Example

Make sure cris-axis-linux-gnu-gcc of version R60 or greater will be used when building in this environment:

    compiler cris-axis-linux-gnu-gcc rev=">=R60"
    

See Also

envfile(3)