You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 5653 Reporter:@bobzhang Assigned to: meyer Status: closed (set by @xavierleroy on 2015-12-11T18:19:38Z) Resolution: fixed Priority: normal Severity: minor Target version: 4.01.0+dev Fixed in version: 4.01.0+dev Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues Monitored by:@gasche@hcarty gildor
Bug description
This rule will rebuld cmxs everytime, as along as I don't have .so
rule "ocaml: mldylib & cmx* & o* -> cmxs & so"
~tags:["ocaml"; "native"; "shared"; "library"]
~prods:["%.cmxs"; x_dll]
~dep:"%.mldylib"
(Ocaml_compiler.native_shared_library_link_mldylib "%.mldylib" "%.cmxs");;
This also applies this rule, when I only need build .cmx, it will rebuild .cmo
everytime since I need it to build cmi.
rule "ocaml: ml -> cmo & cmi"
~tags:["ocaml"]
~prods:["%.cmo"; "%.cmi"]
~deps:["%.ml"; "%.ml.depends"]
(Ocaml_compiler.byte_compile_ocaml_implem "%.ml" "%.cmo");;
Since I switched to ocamlbuild, I found the performance degraded a lot.
It works, but it is really slow. It is possible to make the rules more customizable without introducing a big database with a lot of reduandance?
The text was updated successfully, but these errors were encountered:
Just remove x_dll works, how do I tell ocamlbuild which rule is used first?
rule "ocaml: mldylib & cmx* & o* -> cmxs"
~tags:["ocaml"; "native"; "shared"; "library"]
~prods:["%.cmxs"]
~dep:"%.mldylib"
(Ocaml_compiler.native_shared_library_link_mldylib "%.mldylib" "%.cmxs");;
Original bug ID: 5653
Reporter: @bobzhang
Assigned to: meyer
Status: closed (set by @xavierleroy on 2015-12-11T18:19:38Z)
Resolution: fixed
Priority: normal
Severity: minor
Target version: 4.01.0+dev
Fixed in version: 4.01.0+dev
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Monitored by: @gasche @hcarty gildor
Bug description
This rule will rebuld cmxs everytime, as along as I don't have .so
rule "ocaml: mldylib & cmx* & o* -> cmxs & so"
~tags:["ocaml"; "native"; "shared"; "library"]
~prods:["%.cmxs"; x_dll]
~dep:"%.mldylib"
(Ocaml_compiler.native_shared_library_link_mldylib "%.mldylib" "%.cmxs");;
This also applies this rule, when I only need build .cmx, it will rebuild .cmo
everytime since I need it to build cmi.
rule "ocaml: ml -> cmo & cmi"
~tags:["ocaml"]
~prods:["%.cmo"; "%.cmi"]
~deps:["%.ml"; "%.ml.depends"]
(Ocaml_compiler.byte_compile_ocaml_implem "%.ml" "%.cmo");;
Since I switched to ocamlbuild, I found the performance degraded a lot.
It works, but it is really slow. It is possible to make the rules more customizable without introducing a big database with a lot of reduandance?
The text was updated successfully, but these errors were encountered: