Browse Source

fix parse_transform loading

Namdak Tonpa 6 years ago
parent
commit
14a66813cb
3 changed files with 2 additions and 1 deletions
  1. 1 1
      include/mad.hrl
  2. BIN
      mad
  3. 1 0
      src/compile/mad_compile.erl

+ 1 - 1
include/mad.hrl

@@ -1 +1 @@
--define(VERSION,"7d474b").
+-define(VERSION,"816513").

BIN
mad


+ 1 - 0
src/compile/mad_compile.erl

@@ -60,6 +60,7 @@ dep(Cwd, _Conf, ConfigFile, Name) ->
 
 
             file:make_dir(EbinDir),
             file:make_dir(EbinDir),
             code:replace_path(Name,EbinDir),
             code:replace_path(Name,EbinDir),
+            code:add_path(EbinDir),
 
 
             PortStatus  = lists:any(fun(X)->X end,mad_port:compile(DepPath,Conf1)),
             PortStatus  = lists:any(fun(X)->X end,mad_port:compile(DepPath,Conf1)),
             Opts        = mad_utils:get_value(erl_opts, Conf1, []),
             Opts        = mad_utils:get_value(erl_opts, Conf1, []),