Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
grew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
grew
grew
Commits
7de084c8
Commit
7de084c8
authored
Dec 14, 2017
by
Bruno Guillaume
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0.46.0 (replace) Fix myocamlbuild.ml
parent
c9fc7f09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
myocamlbuild.ml
myocamlbuild.ml
+4
-5
No files found.
myocamlbuild.ml
View file @
7de084c8
open
Ocamlbuild_plugin
let
read
file
=
let
in_ch
=
open_in
file
in
try
...
...
@@ -11,10 +11,9 @@ let read file =
let
()
=
dispatch
begin
function
|
After_rules
->
let
data_dir
=
"
\"
"
^
(
read
"DATA_DIR"
)
^
"
\"
"
and
version
=
"
\"
"
^
(
read
"VERSION"
)
^
"
\"
"
in
let
pp_src
=
S
[
A
"-pp"
;
A
(
"cppo -D 'VERSION "
^
version
^
"' -D 'DATA_DIR "
^
data_dir
^
"'"
)]
in
let
version
=
"
\"
"
^
(
read
"VERSION"
)
^
"
\"
"
in
let
pp_src
=
S
[
A
"-pp"
;
A
(
"cppo -D 'VERSION "
^
version
^
"'"
)]
in
flag
[
"ocaml"
;
"ocamldep"
]
&
pp_src
;
flag
[
"ocaml"
;
"compile"
]
&
pp_src
;
flag
[
"ocaml"
;
"compile"
]
&
pp_src
;
|
_
->
()
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment