From 04bca674d3742791a31e20ef5107cda47a734c42 Mon Sep 17 00:00:00 2001 From: Wojciech Meyer Date: Jan 01 2013 15:09:08 +0000 Subject: PR#5868: Bytecode dependencies should not appear in output of ocamldep when -native flag is used git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13194 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- diff --git a/tools/ocamldep.ml b/tools/ocamldep.ml index c6b11de..4ec5928 100644 --- a/tools/ocamldep.ml +++ b/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" ]