Skip to content

Commit 784f6ed

Browse files
authored
Document the prune_code_paths option for the compiler (#13035)
1 parent 35619fd commit 784f6ed

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/mix/lib/mix/tasks/compile.ex

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ defmodule Mix.Tasks.Compile do
3535
this has undesirable side-effects (such as skipping some
3636
compiler checks) and should be avoided.
3737
38+
* `:prune_code_paths` - prune code paths before compilation. When true
39+
(default), this prunes code paths of applications that are not listed
40+
in the project file with dependencies. When false, this keeps the
41+
entirety of Erlang/OTP available on the project starts, including
42+
the paths set by the code loader from the `ERL_LIBS` environment as
43+
well as explicitely listed by providing `-pa` and `-pz` options
44+
to Erlang.
3845
## Compilers
3946
4047
To see documentation for each specific compiler, you must

0 commit comments

Comments
 (0)