Skip to content

Commit

Permalink
Rename emit_empty_archives to linker_can_create_empty_archives
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Oct 31, 2019
1 parent 14d8e81 commit b62b450
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dune/lib_archives.ml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let lib_files t = t.lib_files
let dll_files t = t.dll_files

let has_native_archive lib config contents =
Lib_config.emit_empty_archives config
Lib_config.linker_can_create_empty_archives config
||
let name = Dune_file.Library.best_name lib in
let modules = Dir_contents.modules_of_library contents ~name in
Expand Down
2 changes: 1 addition & 1 deletion src/dune/lib_config.ml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ let get_for_enabled_if t ~var =
Code_error.raise "Lib_config.get_for_enabled_if: var not allowed"
[ ("var", Dyn.Encoder.string var) ]

let emit_empty_archives t =
let linker_can_create_empty_archives t =
match t.ccomp_type with
| Msvc -> false
| Other _ -> true
2 changes: 1 addition & 1 deletion src/dune/lib_config.mli
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ val allowed_in_enabled_if : string list

val get_for_enabled_if : t -> var:string -> string

val emit_empty_archives : t -> bool
val linker_can_create_empty_archives : t -> bool

0 comments on commit b62b450

Please sign in to comment.