Mix v1.2.6 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:[:yeec, :leex, :erlang, :elixir, :app]
:consolidate_protocols
- whentrue
, runs protocol consolidation via thecompile.protocols
task:build_embedded
- whentrue
, 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