Skip to content

Commit

Permalink
Formatting and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tjarvstrand committed Jan 23, 2013
1 parent adf3228 commit ed29120
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/edts/src/edts_code.erl
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,11 @@ compile_and_load(File0, Opts) ->
false -> File0
end,
OutDir = get_compile_outdir(File0),
CompileOpts = [{cwd, Cwd}, binary, debug_info,
{outdir, OutDir}, return|Opts] ++ extract_compile_opts(File),
CompileOpts = [{cwd, Cwd},
{outdir, OutDir},
binary,
debug_info,
return|Opts] ++ extract_compile_opts(File),
%% Only compile to a binary to begin with since compile-options resulting in
%% an output-file will cause the compile module to remove the existing beam-
%% file even if compilation fails, in which case we end up with no module
Expand Down Expand Up @@ -456,7 +459,7 @@ xref_file() ->
get_compile_outdir(File) ->
Mod = list_to_atom(filename:basename(filename:rootname(File))),
Opts = try proplists:get_value(options, Mod:module_info(compile), [])
catch error:undef -> []
catch error:undef -> [] %% No beam-file
end,
get_compile_outdir(File, Opts).

Expand Down

0 comments on commit ed29120

Please sign in to comment.