1. camlspotter
  2. mutated_ocaml

Source

mutated_ocaml / tools / ocamldep.ml

Diff from to

File tools/ocamldep.ml

 (*                                                                     *)
 (***********************************************************************)
 
-(* $Id: ocamldep.ml 12620 2012-06-20 13:17:14Z doligez $ *)
+(* $Id: ocamldep.ml 12759 2012-07-23 13:39:21Z lefessan $ *)
 
 open Longident
 open Parsetree
       print_raw_dependencies source_file extracted_deps
     end else begin
       let basename = Filename.chop_extension source_file in
-      let byte_targets =
-        if !native_only then [] else [ basename ^ ".cmo" ] in
+      let byte_targets = [ basename ^ ".cmo" ] in
       let native_targets =
         if !all_dependencies
         then [ basename ^ ".cmx"; basename ^ ".o" ]
       let (byt_deps, native_deps) =
         Depend.StringSet.fold (find_dependency ML)
           extracted_deps init_deps in
-      if not !native_only then begin
-        print_dependencies (byte_targets @ extra_targets) byt_deps;
-      end;
+      print_dependencies (byte_targets @ extra_targets) byt_deps;
       print_dependencies (native_targets @ extra_targets) native_deps;
     end