Skip to content

Commit

Permalink
Don't subdirectory beams.
Browse files Browse the repository at this point in the history
In the case of a beam called Coq.Arith.EqNat, which will be called
directly in the Core Erlang like call 'Coq.Arith.EqNat':'beq_nat', don't
put into a subdirectory or the emulator will not be able to find it.
  • Loading branch information
cmeiklejohn committed Nov 5, 2013
1 parent 22f8b83 commit 9304b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rebar_erlc_compiler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ internal_core_compile(Config, Source, Outdir, ErlOpts) ->
{Module, Hrls} = inspect(Source, include_path(Source, Config)),

%% Construct the target filename
Target = filename:join([Outdir | string:tokens(Module, ".")]) ++ ".beam",
Target = filename:join([Outdir,Module]) ++ ".beam",
ok = filelib:ensure_dir(Target),

%% If the file needs compilation, based on last mod date of includes or
Expand Down

0 comments on commit 9304b45

Please sign in to comment.