diff options
author | José Valim <jose.valim@dashbit.co> | 2021-12-05 19:52:33 +0100 |
---|---|---|
committer | José Valim <jose.valim@dashbit.co> | 2021-12-05 19:52:33 +0100 |
commit | c329e711067d9f60ed881d9a8a554485ebec9324 (patch) | |
tree | c9f5b53068049fabefff04e6df54c376e706d1ea | |
parent | 1f0422ac2ede9b13aee6e6b1674616e140b2945e (diff) | |
download | elixir-c329e711067d9f60ed881d9a8a554485ebec9324.tar.gz |
Mention Mix.install/2 on protocol consolidation
-rw-r--r-- | lib/elixir/lib/protocol.ex | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/elixir/lib/protocol.ex b/lib/elixir/lib/protocol.ex index 05906bdb5..41acbf4ba 100644 --- a/lib/elixir/lib/protocol.ex +++ b/lib/elixir/lib/protocol.ex @@ -244,8 +244,16 @@ defmodule Protocol do ... end - Although doing so is not recommended as it may affect your test suite - performance. + If you are using `Mix.install/2`, you can do by passing the `consolidate_protocols` + option: + + Mix.install( + deps, + consolidate_protocols: false + ) + + Although doing so is not recommended as it may affect the performance of + your code. Finally, note all protocols are compiled with `debug_info` set to `true`, regardless of the option set by the `elixirc` compiler. The debug info is |