Skip to content

Commit a9ad5a7

Browse files
committed
Merge pull request #19 from johnelse/merlin
Improve merlin support
2 parents bf3c1de + eabefe9 commit a9ad5a7

File tree

5 files changed

+90
-66
lines changed

5 files changed

+90
-66
lines changed

.merlin

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
PKG cmdliner bigarray threads oUnit rrd-transport
2+
S lib
3+
S rrdd
4+
5+
B _build/lib
6+
B _build/rrdd

_oasis

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,7 @@ Executable "xcp-rrdd"
2222
MainIs: xcp_rrdd.ml
2323
Custom: true
2424
Install: false
25+
ByteOpt: -bin-annot
26+
NativeOpt: -bin-annot
2527
BuildDepends: threads, rpclib, rpclib.unix, gzip, forkexec, stdext, uuid, http-svr, xcp-inventory, xcp-rrd, rrdd-libs, xcp, xcp.rrd, xcp.network, xcp.xen, xenops, rrd-transport, threads, rpclib.syntax, io-page.unix, xen-gnt.unix
2628

_tags

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# OASIS_START
2-
# DO NOT EDIT (digest: 8e4c3ba86cdb89f74f649d353c23f4d7)
2+
# DO NOT EDIT (digest: 7fdd8e2115b566f8b0a0d1b83c22ddc9)
33
# Ignore VCS directories, you can use the same kind of rule outside
44
# OASIS_START/STOP if you want to exclude directories that contains
55
# useless stuff for the build process
@@ -23,6 +23,10 @@
2323
<lib/*.ml{,i}>: pkg_threads
2424
<lib/*.ml{,i}>: pkg_xcp
2525
# Executable xcp-rrdd
26+
<rrdd/xcp_rrdd.{native,byte}>: oasis_executable_xcp_rrdd_byte
27+
<rrdd/*.ml{,i}>: oasis_executable_xcp_rrdd_byte
28+
<rrdd/xcp_rrdd.{native,byte}>: oasis_executable_xcp_rrdd_native
29+
<rrdd/*.ml{,i}>: oasis_executable_xcp_rrdd_native
2630
<rrdd/xcp_rrdd.{native,byte}>: pkg_forkexec
2731
<rrdd/xcp_rrdd.{native,byte}>: pkg_gzip
2832
<rrdd/xcp_rrdd.{native,byte}>: pkg_http-svr

myocamlbuild.ml

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(* OASIS_START *)
2-
(* DO NOT EDIT (digest: d9b334f52572b46fc2e786b377913b9f) *)
2+
(* DO NOT EDIT (digest: 1de39f4871ecc21e9dbd7596158996b4) *)
33
module OASISGettext = struct
44
(* # 22 "src/oasis/OASISGettext.ml" *)
55

@@ -39,10 +39,10 @@ module OASISExpr = struct
3939
open OASISGettext
4040

4141

42-
type test = string
42+
type test = string
4343

4444

45-
type flag = string
45+
type flag = string
4646

4747

4848
type t =
@@ -52,10 +52,10 @@ module OASISExpr = struct
5252
| EOr of t * t
5353
| EFlag of flag
5454
| ETest of test * string
55-
5655

5756

58-
type 'a choices = (t * 'a) list
57+
58+
type 'a choices = (t * 'a) list
5959

6060

6161
let eval var_get t =
@@ -430,10 +430,10 @@ module MyOCamlbuildBase = struct
430430
module OC = Ocamlbuild_pack.Ocaml_compiler
431431

432432

433-
type dir = string
434-
type file = string
435-
type name = string
436-
type tag = string
433+
type dir = string
434+
type file = string
435+
type name = string
436+
type tag = string
437437

438438

439439
(* # 62 "src/plugins/ocamlbuild/MyOCamlbuildBase.ml" *)
@@ -448,7 +448,7 @@ module MyOCamlbuildBase = struct
448448
* directory.
449449
*)
450450
includes: (dir * dir list) list;
451-
}
451+
}
452452

453453

454454
let env_filename =
@@ -610,6 +610,19 @@ let package_default =
610610
(["oasis_library_rrdd_libs_byte"; "ocaml"; "compile"; "byte"],
611611
[(OASISExpr.EBool true, S [A "-bin-annot"])]);
612612
(["oasis_library_rrdd_libs_native"; "ocaml"; "compile"; "native"],
613+
[(OASISExpr.EBool true, S [A "-bin-annot"])]);
614+
(["oasis_executable_xcp_rrdd_byte"; "ocaml"; "link"; "byte"],
615+
[(OASISExpr.EBool true, S [A "-bin-annot"])]);
616+
(["oasis_executable_xcp_rrdd_native"; "ocaml"; "link"; "native"],
617+
[(OASISExpr.EBool true, S [A "-bin-annot"])]);
618+
(["oasis_executable_xcp_rrdd_byte"; "ocaml"; "ocamldep"; "byte"],
619+
[(OASISExpr.EBool true, S [A "-bin-annot"])]);
620+
(["oasis_executable_xcp_rrdd_native"; "ocaml"; "ocamldep"; "native"
621+
],
622+
[(OASISExpr.EBool true, S [A "-bin-annot"])]);
623+
(["oasis_executable_xcp_rrdd_byte"; "ocaml"; "compile"; "byte"],
624+
[(OASISExpr.EBool true, S [A "-bin-annot"])]);
625+
(["oasis_executable_xcp_rrdd_native"; "ocaml"; "compile"; "native"],
613626
[(OASISExpr.EBool true, S [A "-bin-annot"])])
614627
];
615628
includes = [("rrdd", ["lib"])]
@@ -618,6 +631,6 @@ let package_default =
618631

619632
let dispatch_default = MyOCamlbuildBase.dispatch_default package_default;;
620633

621-
# 622 "myocamlbuild.ml"
634+
# 635 "myocamlbuild.ml"
622635
(* OASIS_STOP *)
623636
Ocamlbuild_plugin.dispatch dispatch_default;;

0 commit comments

Comments
 (0)