Skip to content

Commit

Permalink
Avoid matching explicitly on extension
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolás Ojeda Bär <[email protected]>
  • Loading branch information
nojb committed Feb 17, 2020
1 parent 695f4b6 commit d5e858a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/dune/exe.ml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ module Linkage = struct

let js = { mode = Byte; ext = ".bc.js"; flags = [] }

let is_plugin = function
| { ext = ".cma" | ".cmxs"; _ } -> true
| _ -> false
let is_plugin t =
List.mem t.ext ~set:(List.map ~f:Mode.plugin_ext Mode.all)

let c_flags = [ "-output-obj" ]

Expand Down

0 comments on commit d5e858a

Please sign in to comment.