Skip to content

Commit c1f2970

Browse files
committed
Add additional OCaml wrappers.
1 parent 1de108a commit c1f2970

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Runner.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,9 @@ function generate_compiler_wrappers!(platform::AbstractPlatform; bin_path::Abstr
736736
ocamlc(io::IO, p::AbstractPlatform) = ocaml_wrapper(io, "ocamlc.opt", p)
737737
ocamlopt(io::IO, p::AbstractPlatform) = ocaml_wrapper(io, "ocamlopt.opt", p)
738738
flexlink(io::IO, p::AbstractPlatform) = ocaml_wrapper(io, "flexlink", p)
739+
dune(io::IO, p::AbstractPlatform) = ocaml_wrapper(io, "dune", p)
740+
ocamlbuild(io::IO, p::AbstractPlatform) = ocaml_wrapper(io, "ocamlbuild", p)
741+
opam(io::IO, p::AbstractPlatform) = ocaml_wrapper(io, "opam", p)
739742

740743
# Rust stuff
741744
function rust_flags!(p::AbstractPlatform, flags::Vector{String} = String[])
@@ -981,6 +984,10 @@ function generate_compiler_wrappers!(platform::AbstractPlatform; bin_path::Abstr
981984
if Sys.iswindows(p)
982985
write_wrapper(flexlink, p, "$(t)-flexlink")
983986
end
987+
988+
write_wrapper(dune, p, "$(t)-dune")
989+
write_wrapper(ocamlbuild, p, "$(t)-ocamlbuild")
990+
write_wrapper(opam, p, "$(t)-opam")
984991
end
985992

986993
# Generate go stuff
@@ -1034,6 +1041,7 @@ function generate_compiler_wrappers!(platform::AbstractPlatform; bin_path::Abstr
10341041
if Sys.iswindows(platform)
10351042
push!(default_tools, "flexlink")
10361043
end
1044+
append!(default_tools, ("dune", "ocamlbuild", "opam"))
10371045
end
10381046
if :go in compilers
10391047
append!(default_tools, ("go", "gofmt"))

0 commit comments

Comments
 (0)