Skip to content

Commit

Permalink
Use empty list instead of None
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolás Ojeda Bär <n.oje.bar@gmail.com>
  • Loading branch information
nojb committed Aug 20, 2019
1 parent faabc35 commit 3d9c770
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dune/exe_rules.ml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ let executables_rules ~sctx ~dir ~expander ~dir_contents ~scope ~compile_info
in
let o_files =
if not (Executables.has_stubs exes) then
None
[]
else (
if List.mem Exe.Linkage.byte ~set:linkages then
User_error.raise ~loc:exes.buildable.loc
Expand All @@ -126,11 +126,11 @@ let executables_rules ~sctx ~dir ~expander ~dir_contents ~scope ~compile_info
|> List.map ~f:Path.build
in
Check_rules.add_files sctx ~dir o_files;
Some o_files
o_files
)
in
let requires_compile = Compilation_context.requires_compile cctx in
Exe.build_and_link_many cctx ~programs ~linkages ~link_flags ?o_files
Exe.build_and_link_many cctx ~programs ~linkages ~link_flags ~o_files
~promote:exes.promote;
( cctx
, Merlin.make () ~requires:requires_compile ~flags ~modules
Expand Down

0 comments on commit 3d9c770

Please sign in to comment.