Skip to content

Commit 9ba77e1

Browse files
author
José Valim
committed
List crypto, compiler and syntax tools as dependencies, closes #2593
1 parent 84010d4 commit 9ba77e1

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

lib/elixir/src/elixir_compiler.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ no_auto_import() ->
157157
%% CORE HANDLING
158158

159159
core() ->
160-
ok = application:ensure_started(elixir),
160+
{ok, _} = application:ensure_all_started(elixir),
161161
elixir_code_server:cast({compiler_options, [{docs,false},{internal,true}]}),
162162
[core_file(File) || File <- core_main()].
163163

lib/elixir/test/erlang/test_helper.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
]).
1414

1515
test() ->
16-
application:start(elixir),
16+
application:ensure_all_started(elixir),
1717
case eunit:test(?TESTS) of
1818
error -> erlang:halt(1);
1919
_Res -> erlang:halt(0)

lib/mix/lib/mix/tasks/escript.build.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,13 @@ defmodule Mix.Tasks.Escript.Build do
204204
@app app
205205

206206
def main(args) do
207-
case :application.start(:elixir) do
208-
:ok ->
207+
case :application.ensure_all_started(:elixir) do
208+
{:ok, _} ->
209209
start_app(@app)
210210
args = Enum.map(args, &List.to_string(&1))
211211
Kernel.CLI.run fn _ -> @module.main(args) end, true
212212
_ ->
213-
io_error "Elixir is not in the code path, aborting."
213+
io_error "Elixir is not available, aborting."
214214
System.halt(1)
215215
end
216216
end

src/elixir.app.src

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
elixir
66
]},
77
{registered, [elixir_code_server]},
8-
{applications, [kernel,stdlib]},
8+
{applications, [kernel,stdlib,crypto,compiler,syntax_tools]},
99
{mod, {elixir,[]}},
1010
{env, [{uri, #{}}]}
1111
]}.

0 commit comments

Comments
 (0)