Skip to content

Commit

Permalink
Add support for foreign libraries
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Mokhov <amokhov@janestreet.com>
  • Loading branch information
snowleopard committed Oct 9, 2019
1 parent 3111f74 commit 94ca484
Show file tree
Hide file tree
Showing 64 changed files with 1,718 additions and 786 deletions.
2 changes: 1 addition & 1 deletion bin/arg.ml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ let profile =
, fun fmt t -> Format.pp_print_string fmt (Profile.to_string t) )

module Dep = struct
module Dep_conf = Dune_file.Dep_conf
module Dep_conf = Dep_conf

type t = Dep_conf.t

Expand Down
2 changes: 1 addition & 1 deletion bin/arg.mli
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module Path : sig
end

module Dep : sig
type t = Dune_file.Dep_conf.t
type t = Dep_conf.t

val file : string -> t

Expand Down
2 changes: 1 addition & 1 deletion bin/target.ml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ let resolve_alias common ~recursive sv ~(setup : Dune.Main.build_system) =
| None -> Error [ Pp.text "alias cannot contain variables" ]

let resolve_target common ~setup = function
| Dune.Dune_file.Dep_conf.Alias sv as dep ->
| Dune.Dep_conf.Alias sv as dep ->
Result.map_error
~f:(fun hints -> (dep, hints))
(resolve_alias common ~recursive:false sv ~setup)
Expand Down
4 changes: 2 additions & 2 deletions otherlibs/build-info/test/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ Once installed, we have the version information:
lib dune-build-info: XXX

$ grep version _install/lib/a/dune-package
(version 1.0+a)
[1]

$ grep version _install/lib/a/META
version = "1.0+a"
[1]

Check what the generated build info module looks like:

Expand Down
128 changes: 0 additions & 128 deletions src/dune/c.ml

This file was deleted.

76 changes: 0 additions & 76 deletions src/dune/c.mli

This file was deleted.

143 changes: 0 additions & 143 deletions src/dune/c_sources.ml

This file was deleted.

Loading

0 comments on commit 94ca484

Please sign in to comment.