Skip to content

Commit

Permalink
Fix interpretation of / in META files (#1889)
Browse files Browse the repository at this point in the history
Fix #1885

Signed-off-by: Jeremie Dimino <[email protected]>
  • Loading branch information
jeremiedimino authored Feb 27, 2019
1 parent 41c7276 commit dd7425a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ unreleased

- Format `dune printenv` output (#1867, fix #1862, @emillon)

1.7.3 (unreleased)
------------------

- Fix interpretation of `META` files containing archives with `/` in
the filename. For instance, this was causing llvm to be unusable
with dune (#1889, fix #1885, @diml)

- Make errors about menhir stanzas be located (#1881, fix #1876,
@diml)

Expand Down
7 changes: 6 additions & 1 deletion src/dune_package.ml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ module Lib = struct
~foreign_archives ~jsoo_runtime ~main_module_name ~sub_systems
~requires ~ppx_runtime_deps ~implements ~virtual_ ~modules ~modes
~version ~orig_src_dir ~dir =
let map_path p = Path.relative dir (Path.basename p) in
let map_path p =
if Path.is_managed p then
Path.relative dir (Path.basename p)
else
p
in
let map_list = List.map ~f:map_path in
let map_mode = Mode.Dict.map ~f:map_list in
{ loc
Expand Down

0 comments on commit dd7425a

Please sign in to comment.