Browse Source

fix export_all, no merl app

221V 1 year ago
parent
commit
f1bea3c7bd
3 changed files with 3 additions and 4 deletions
  1. 1 2
      src/erlydtl.app.src
  2. 1 1
      src/erlydtl_beam_compiler.erl
  3. 1 1
      src/erlydtl_runtime.erl

+ 1 - 2
src/erlydtl.app.src

@@ -1,9 +1,8 @@
-%% -*- mode: erlang -*-
 {application, erlydtl,
  [{description, "Django Template Language for Erlang"},
   {vsn, "0.12.1"},
   {modules, []},
-  {applications, [kernel, stdlib, compiler, syntax_tools, merl]},
+  {applications, [kernel, stdlib, compiler, syntax_tools]},
   {registered, []},
   {maintainers, ["Andreas Stenius (@kaos)", "Heinz N. Gies"]},
   {licenses,["MIT"]},

+ 1 - 1
src/erlydtl_beam_compiler.erl

@@ -59,7 +59,7 @@
 
 -import(erlydtl_compiler_utils,
         [unescape_string_literal/1, full_path/2, push_scope/2,
-         restore_scope/2, begin_scope/1, begin_scope/2, end_scope/4,
+         restore_scope/2, begin_scope/2, end_scope/4,
          empty_scope/0, get_current_file/1, add_errors/2,
          add_warnings/2, merge_info/2, call_extension/3,
          init_treewalker/1, resolve_variable/2, resolve_variable/3,

+ 1 - 1
src/erlydtl_runtime.erl

@@ -1,6 +1,6 @@
 -module(erlydtl_runtime).
 
--compile(export_all).
+-compile([export_all, nowarn_export_all]).
 
 -type text() :: string() | binary().
 -type phrase() :: text() | {text(), {PluralPhrase::text(), non_neg_integer()}}.