Mix v1.3.2 Mix.Tasks.Compile

A meta task that compiles source files.

It simply runs the compilers registered in your project.

Configuration

  • :compilers - compilers to run, defaults to: [:yecc, :leex, :erlang, :elixir, :xref, :app]

  • :consolidate_protocols - when true, runs protocol consolidation via the compile.protocols task

  • :build_embedded - when true, activates protocol consolidation and does not generate symlinks in builds

  • :build_path - the directory where build artifacts should be written to. This option is intended only for child apps within a larger umbrella application so that each child app can use the common _build directory of the parent umbrella. In a non-umbrella context, configuring this has undesirable side-effects (such as skipping some compiler checks) and should be avoided.

Compilers

To see documentation for each specific compiler, you must invoke help directly for the compiler command:

mix help compile.elixir
mix help compile.erlang

You can get a list of all compilers by running:

mix compile --list

Command line options

  • --list - list all enabled compilers
  • --no-archives-check - skip checking of archives
  • --no-deps-check - skip checking of dependencies
  • --force - force compilation

Summary

Functions

Returns all compilers

Returns manifests for all compilers

Callback implementation for Mix.Task.run/1

Functions

compilers()

Returns all compilers.

manifests()

Returns manifests for all compilers.

run(args)

Specs

run(OptionParser.argv) :: :ok | :noop

Callback implementation for Mix.Task.run/1.