File tree Expand file tree Collapse file tree 3 files changed +14
-20
lines changed Expand file tree Collapse file tree 3 files changed +14
-20
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ $(1): lib/$(1)/ebin/Elixir.$(2).beam lib/$(1)/ebin/$(1).app
32
32
lib/$(1 ) /ebin/$(1 ) .app: lib/$(1 ) /mix.exs
33
33
$(Q ) mkdir -p lib/$(1 ) /_build/shared/lib/$(1 )
34
34
$(Q ) cp -R lib/$(1 ) /ebin lib/$(1 ) /_build/shared/lib/$(1 ) /
35
- $(Q ) cd lib/$(1 ) && ../../bin/elixir -e "Mix.Sup.start_link( )" -r mix.exs -e "Mix.Task.run('compile.app')"
35
+ $(Q ) cd lib/$(1 ) && ../../bin/elixir -e "Mix.start(:permanent, [] )" -r mix.exs -e "Mix.Task.run('compile.app')"
36
36
$(Q ) cp lib/$(1 ) /_build/shared/lib/$(1 ) /ebin/$(1 ) .app lib/$(1 ) /ebin/$(1 ) .app
37
37
$(Q ) rm -rf lib/$(1 ) /_build
38
38
Original file line number Diff line number Diff line change @@ -20,12 +20,22 @@ defmodule Mix do
20
20
end
21
21
22
22
@ doc false
23
- def start ( _ , [ ] ) do
24
- res = Mix.Sup . start_link
23
+ def start ( _type , [ ] ) do
24
+ import Supervisor.Spec
25
+
26
+ children = [
27
+ worker ( Mix.TasksServer , [ ] ) ,
28
+ worker ( Mix.ProjectStack , [ ] )
29
+ ]
30
+
31
+ opts = [ strategy: :one_for_one , name: Mix.Supervisor ]
32
+ stat = Supervisor . start_link ( children , opts )
33
+
25
34
if env = System . get_env ( "MIX_ENV" ) do
26
35
env ( String . to_atom env )
27
36
end
28
- res
37
+
38
+ stat
29
39
end
30
40
31
41
@ doc """
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments