Skip to content
Browse files

PR#5868: Bytecode dependencies should not appear in output of ocamlde…

…p when -native flag is used

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13194 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
  • Loading branch information...
1 parent f50520d commit c32a22b5e461f383ce915b1ec594b6927619e88d meyer committed Jan 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 tools/ocamldep.ml
View
2 tools/ocamldep.ml
@@ -233,7 +233,7 @@ let ml_file_dependencies source_file =
print_raw_dependencies source_file extracted_deps
end else begin
let basename = Filename.chop_extension source_file in
- let byte_targets = [ basename ^ ".cmo" ] in
+ let byte_targets = if !native_only then [] else [ basename ^ ".cmo" ] in
let native_targets =
if !all_dependencies
then [ basename ^ ".cmx"; basename ^ ".o" ]

0 comments on commit c32a22b

Please sign in to comment.
Something went wrong with that request. Please try again.