7efba28 Reverting "PR#5868: Bytecode dependencies should not appear in output of ocamldep"

Authored and Committed by Wojciech Meyer 11 years ago
    Reverting "PR#5868: Bytecode dependencies should not appear in output of ocamldep"
    
    -native flag semantics are currently different to that what the user
    expects, and what was attempted to be fixed. The semantics of -native
    are not to completely disable generation of dependencies for bytecode
    instead make the compilation to native code more efficient.
    
    Most of the project are expected to be buildable with both versions of
    the compiler. So ocamldep is expected to always generate the
    dependencies in both cases. When the .mli file is absent ocamldep
    needs to still generate dependencies in bytecode to build the cmi only
    and to build cmi and cmx for the dependent compilation unit . Because
    of some make tool pecularities, handling of two different rules that
    include the same depenency is problematic, so instead when the -native
    flag is not used the cmo file is used as a proxy to build cmi, when
    the -native enabled however, the cmx file is used as proxy to build
    cmi file for the dependencies to avoid recompilation of the dependent
    .cmo file just to get .cmi file.
    
    git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13202 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
    
        
file modified
+3 -5