aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/src/dialyzer_analysis_callgraph.erl
diff options
context:
space:
mode:
authorHenrik Nord <[email protected]>2014-09-09 14:15:50 +0200
committerHenrik Nord <[email protected]>2014-09-09 14:15:50 +0200
commit88c54fc500096d326a87414af1e936890655024f (patch)
tree616dbe4ec9d4cd2793433c92c61a1e4f5c24007b /lib/dialyzer/src/dialyzer_analysis_callgraph.erl
parent945231848e54174ad67a28c5a137179dc96b3d6d (diff)
parentf551de9de308ae5f21adc0e59806eab39146da7d (diff)
downloadotp-88c54fc500096d326a87414af1e936890655024f.tar.gz
otp-88c54fc500096d326a87414af1e936890655024f.tar.bz2
otp-88c54fc500096d326a87414af1e936890655024f.zip
Merge branch 'maint'
Diffstat (limited to 'lib/dialyzer/src/dialyzer_analysis_callgraph.erl')
-rw-r--r--lib/dialyzer/src/dialyzer_analysis_callgraph.erl11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/dialyzer/src/dialyzer_analysis_callgraph.erl b/lib/dialyzer/src/dialyzer_analysis_callgraph.erl
index 6a33a2acb3..af1c2b7e3a 100644
--- a/lib/dialyzer/src/dialyzer_analysis_callgraph.erl
+++ b/lib/dialyzer/src/dialyzer_analysis_callgraph.erl
@@ -373,7 +373,16 @@ compile_byte(File, Callgraph, CServer, UseContracts) ->
{error, " Could not get abstract code for: " ++ File ++ "\n" ++
" Recompile with +debug_info or analyze starting from source code"};
{ok, AbstrCode} ->
- compile_common(File, AbstrCode, [], Callgraph, CServer, UseContracts)
+ compile_byte(File, AbstrCode, Callgraph, CServer, UseContracts)
+ end.
+
+compile_byte(File, AbstrCode, Callgraph, CServer, UseContracts) ->
+ case dialyzer_utils:get_compile_options_from_beam(File) of
+ error ->
+ {error, " Could not get compile options for: " ++ File ++ "\n" ++
+ " Recompile or analyze starting from source code"};
+ {ok, CompOpts} ->
+ compile_common(File, AbstrCode, CompOpts, Callgraph, CServer, UseContracts)
end.
compile_common(File, AbstrCode, CompOpts, Callgraph, CServer, UseContracts) ->