Blob Blame History Raw
From: Peter Lemenkov <lemenkov@gmail.com>
Date: Tue, 16 Apr 2019 16:58:58 +0300
Subject: [PATCH] Don't check for endianness when starting

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>

diff --git a/lib/elixir/src/elixir.erl b/lib/elixir/src/elixir.erl
index e0cc49b09..ea68e8ba7 100644
--- a/lib/elixir/src/elixir.erl
+++ b/lib/elixir/src/elixir.erl
@@ -31,7 +31,6 @@ start(_Type, _Args) ->
   preload_common_modules(),
   set_stdio_and_stderr_to_binary_and_maybe_utf8(),
   check_file_encoding(Encoding),
-  check_endianness(),
 
   Tokenizer = case code:ensure_loaded('Elixir.String.Tokenizer') of
     {module, Mod} -> Mod;
@@ -114,23 +113,6 @@ parse_otp_release() ->
       erlang:halt(1)
   end.
 
-check_endianness() ->
-  case code:ensure_loaded(?system) of
-    {module, ?system} ->
-      Endianness = ?system:endianness(),
-      case ?system:compiled_endianness() of
-        Endianness ->
-          ok;
-        _ ->
-          io:format(standard_error,
-            "warning: Elixir is running in a system with a different endianness than the one its "
-            "source code was compiled in. Please make sure Elixir and all source files were compiled "
-            "in a machine with the same endianness as the current one: ~ts~n", [Endianness])
-      end;
-    {error, _} ->
-      ok
-  end.
-
 check_file_encoding(Encoding) ->
   case Encoding of
     latin1 ->