File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ defmodule Mix.Project do
83
83
[ build_embedded: config [ :build_embedded ] ,
84
84
build_path: build_path ( config ) ,
85
85
build_per_environment: config [ :build_per_environment ] ,
86
+ consolidate_protocols: false ,
86
87
deps_path: deps_path ( config ) ]
87
88
end
88
89
@@ -391,7 +392,6 @@ defmodule Mix.Project do
391
392
[ aliases: [ ] ,
392
393
build_per_environment: true ,
393
394
build_embedded: false ,
394
- consolidate_protocols: false ,
395
395
default_task: "run" ,
396
396
deps: [ ] ,
397
397
deps_path: "deps" ,
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ defmodule Mix.Tasks.Compile do
79
79
80
80
defp consolidate_protocols? do
81
81
config = Mix.Project . config
82
- config [ :build_embedded ] || config [ :consolidate_protocols ]
82
+ Keyword . get ( config , :consolidate_protocols , config [ :build_embedded ] )
83
83
end
84
84
85
85
@ doc """
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ defmodule Mix.Tasks.Escript.Build do
120
120
|> Stream . concat
121
121
|> prepare_beam_paths
122
122
123
- if project [ :build_embedded ] || project [ :consolidate_protocols ] do
123
+ if Keyword . get ( project , :consolidate_protocols , project [ :build_embedded ] ) do
124
124
beam_paths =
125
125
Path . wildcard ( consolidated_path <> "/*" )
126
126
|> prepare_beam_paths ( beam_paths )
You can’t perform that action at this time.
0 commit comments