Skip to content

Commit

Permalink
Fix #3262 (#3269)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
  • Loading branch information
jeremiedimino authored Mar 16, 2020
1 parent bf5f954 commit e82710f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
10 changes: 8 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
next (unreleased)
-----------------
2.5.0 (unreleased)
------------------

- Add a `--release` option meaning the same as `-p` but without the
package filtering. This is useful for custom `dune` invocation in opam
files where we don't want `-p` (#3260, @diml)

2.4.1 (unreleased)
------------------

- Fix a bug introduced in 2.4.0 causing `.bc` programs to be built
with `-custom` by default (#3269, fixes #3262, @diml)

2.4.0 (06/03/2020)
------------------

Expand Down
8 changes: 5 additions & 3 deletions src/dune/workspace.ml
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,11 @@ module Context = struct
field_o "toolchain"
(Dune_lang.Syntax.since syntax (1, 5) >>> Context_name.decode)
and+ dynamically_linked_foreign_archives =
field ~default:false "disable_dynamically_linked_foreign_archives"
(let+ disable = Dune_lang.Syntax.since syntax (2, 0) >>> bool in
not disable)
let+ disable =
field ~default:false "disable_dynamically_linked_foreign_archives"
(Dune_lang.Syntax.since syntax (2, 0) >>> bool)
in
not disable
and+ fdo_target_exe =
let f file =
let ext = Filename.extension file in
Expand Down

1 comment on commit e82710f

@corwin-of-amber
Copy link

@corwin-of-amber corwin-of-amber commented on e82710f Mar 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, that is quite subtle! I actually looked at this line and saw not disable, but missed the fact that it was inside the syntax closure, which means it was not applied to the default...

Please sign in to comment.