blob: f7e1625c6ddb8047b8c09972605e58eb85d3ac63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
Index: capnp-ocaml-2.1.1/src/compiler/OMakefile
===================================================================
--- capnp-ocaml-2.1.1.orig/src/compiler/OMakefile
+++ capnp-ocaml-2.1.1/src/compiler/OMakefile
@@ -24,7 +24,8 @@ else
includes.ml: make_includes.ml ../runtime/common-inc.ml \
../runtime/reader-inc.ml ../runtime/builder-inc.ml
- ocaml $(TOPLEVEL_INCLUDE) make_includes.ml
+ ocamlfind ocamlopt -o make_includes -package core_kernel -linkpkg make_includes.ml
+ ./make_includes
PROGRAM = capnpc-ocaml
Index: capnp-ocaml-2.1.1/src/compiler/make_includes.ml
===================================================================
--- capnp-ocaml-2.1.1.orig/src/compiler/make_includes.ml
+++ capnp-ocaml-2.1.1/src/compiler/make_includes.ml
@@ -1,12 +1,7 @@
-#!/usr/bin/env ocaml
-
(* Generate ocaml code containing the content of a couple of files, formatted
as a list of lines. This is used to perform an ocaml source inclusion,
providing functor-like capability without the performance hit. *)
-#use "topfind"
-#require "core_kernel"
-
open Core_kernel
|