Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/ocamlbuild/ocaml_specific.ml b/ocamlbuild/ocaml_specific.ml
- index fc8c57e..2d07613 100644
- --- a/ocamlbuild/ocaml_specific.ml
- +++ b/ocamlbuild/ocaml_specific.ml
- @@ -58,6 +58,11 @@ let x_p_o = "%.p"-.-ext_obj;;
- let x_p_a = "%.p"-.-ext_lib;;
- let x_p_dll = "%.p"-.-ext_dll;;
- +(* -output-obj targets *)
- +let x_byte_c = "%.byte.c";;
- +let x_byte_o = "%.byte"-.-ext_obj;;
- +let x_native_o = "%.native"-.-ext_obj;;
- +
- rule "target files"
- ~dep:"%.itarget"
- ~stamp:"%.otarget"
- @@ -162,15 +167,15 @@ rule "ocaml: cmo* -> byte"
- rule "ocaml: cmo* -> byte.o"
- ~tags:["ocaml"; "byte"; "link"; "output_obj" ]
- - ~prod:"%.byte.o"
- + ~prod:x_byte_o
- ~dep:"%.cmo"
- - (Ocaml_compiler.byte_output_obj "%.cmo" "%.byte.o");;
- + (Ocaml_compiler.byte_output_obj "%.cmo" x_byte_o);;
- rule "ocaml: cmo* -> byte.c"
- ~tags:["ocaml"; "byte"; "link"; "output_obj" ]
- - ~prod:"%.byte.c"
- + ~prod:x_byte_c
- ~dep:"%.cmo"
- - (Ocaml_compiler.byte_output_obj "%.cmo" "%.byte.c");;
- + (Ocaml_compiler.byte_output_obj "%.cmo" x_byte_c);;
- rule "ocaml: p.cmx* & p.o* -> p.native"
- ~tags:["ocaml"; "native"; "profile"; "program"]
- @@ -186,9 +191,9 @@ rule "ocaml: cmx* & o* -> native"
- rule "ocaml: cmx* & o* -> native.o"
- ~tags:["ocaml"; "native"; "output_obj" ]
- - ~prod:"%.native.o"
- + ~prod:x_native_o
- ~deps:["%.cmx"; x_o]
- - (Ocaml_compiler.native_output_obj "%.cmx" "%.native.o");;
- + (Ocaml_compiler.native_output_obj "%.cmx" x_native_o);;
- rule "ocaml: mllib & d.cmo* -> d.cma"
- ~tags:["ocaml"; "byte"; "debug"; "library"]
Add Comment
Please, Sign In to add comment