Skip to content

Commit

Permalink
fix: remove the --react-to-insignificant-changes option
Browse files Browse the repository at this point in the history
it was only useful for testing/benchmarking, but now it's not even used
for that.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>

<!-- ps-id: 7f96ba38-cac4-46ca-ac16-83f231ce7341 -->
  • Loading branch information
rgrinberg committed Feb 21, 2024
1 parent 1bff499 commit 23ae13b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
12 changes: 0 additions & 12 deletions bin/common.ml
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,6 @@ module Builder = struct
; separate_error_messages : bool
; stop_on_first_error : bool
; require_dune_project_file : bool
; insignificant_changes : [ `React | `Ignore ]
; watch_exclusions : string list
; build_dir : string
; store_digest_preimage : bool
Expand Down Expand Up @@ -963,15 +962,6 @@ module Builder = struct
of the build in a deterministic order. $(b,twice) reports each error \
twice: once as soon as the error is discovered and then again at the end \
of the build, in a deterministic order.")
and+ react_to_insignificant_changes =
Arg.(
value
& flag
& info
[ "react-to-insignificant-changes" ]
~doc:
"React to insignificant file system changes; this is only useful for \
benchmarking dune.")
and+ separate_error_messages =
Arg.(
value
Expand Down Expand Up @@ -1033,7 +1023,6 @@ module Builder = struct
; separate_error_messages
; stop_on_first_error
; require_dune_project_file
; insignificant_changes = (if react_to_insignificant_changes then `React else `Ignore)
; watch_exclusions
; build_dir = Option.value ~default:default_build_dir build_dir
; store_digest_preimage
Expand Down Expand Up @@ -1083,7 +1072,6 @@ let signal_watcher t =

let watch_exclusions t = t.builder.watch_exclusions
let stats t = t.stats
let insignificant_changes t = t.builder.insignificant_changes

(* To avoid needless recompilations under Windows, where the case of
[Sys.getcwd] can vary between different invocations of [dune], normalize to
Expand Down
1 change: 0 additions & 1 deletion bin/common.mli
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ val dump_memo_graph_with_timing : t -> bool
val watch : t -> Dune_rpc_impl.Watch_mode_config.t
val file_watcher : t -> Dune_engine.Scheduler.Run.file_watcher
val prefix_target : t -> string -> string
val insignificant_changes : t -> [ `React | `Ignore ]

module Action_runner : sig
type t =
Expand Down
6 changes: 2 additions & 4 deletions bin/import.ml
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,12 @@ module Scheduler = struct
let go ~(common : Common.t) ~config:dune_config f =
let stats = Common.stats common in
let config =
let insignificant_changes = Common.insignificant_changes common in
let signal_watcher = Common.signal_watcher common in
let watch_exclusions = Common.watch_exclusions common in
Dune_config.for_scheduler
dune_config
stats
~insignificant_changes
~insignificant_changes:`Ignore
~signal_watcher
~watch_exclusions
in
Expand All @@ -217,12 +216,11 @@ module Scheduler = struct
let stats = Common.stats common in
let config =
let signal_watcher = Common.signal_watcher common in
let insignificant_changes = Common.insignificant_changes common in
let watch_exclusions = Common.watch_exclusions common in
Dune_config.for_scheduler
dune_config
stats
~insignificant_changes
~insignificant_changes:`Ignore
~signal_watcher
~watch_exclusions
in
Expand Down

0 comments on commit 23ae13b

Please sign in to comment.