# HG changeset patch # User wenzelm # Date 1707988528 -3600 # Node ID 58c0636e0ef53ef0e97e4a38cc90e67840269db0 # Parent 7a432595fb665ef17100de07f2cbf677f4852805 clarified signature; diff -r 7a432595fb66 -r 58c0636e0ef5 src/Pure/Build/build.scala --- a/src/Pure/Build/build.scala Thu Feb 15 09:53:58 2024 +0100 +++ b/src/Pure/Build/build.scala Thu Feb 15 10:15:28 2024 +0100 @@ -108,17 +108,17 @@ class Engine(val name: String) extends Isabelle_System.Service { override def toString: String = name - def build_options(options: Options, build_hosts: List[Build_Cluster.Host] = Nil): Options = { + def build_options(options: Options, build_cluster: Boolean = false): Options = { val options1 = options + "completion_limit=0" + "editor_tracing_messages=0" - if (build_hosts.isEmpty) options1 - else options1 + "build_database_server" + "build_database" + if (build_cluster) options1 + "build_database_server" + "build_database" + else options1 } final def build_store(options: Options, - build_hosts: List[Build_Cluster.Host] = Nil, + build_cluster: Boolean = false, cache: Term.Cache = Term.Cache.make() ): Store = { - val store = Store(build_options(options, build_hosts = build_hosts), cache = cache) + val store = Store(build_options(options, build_cluster = build_cluster), cache = cache) Isabelle_System.make_directory(store.output_dir + Path.basic("log")) Isabelle_Fonts.init() store @@ -173,7 +173,8 @@ ): Results = { val build_engine = Engine(engine_name(options)) - val store = build_engine.build_store(options, build_hosts = build_hosts, cache = cache) + val store = + build_engine.build_store(options, build_cluster = build_hosts.nonEmpty, cache = cache) val build_options = store.options using(store.open_server()) { server => diff -r 7a432595fb66 -r 58c0636e0ef5 src/Pure/Build/build_schedule.scala --- a/src/Pure/Build/build_schedule.scala Thu Feb 15 09:53:58 2024 +0100 +++ b/src/Pure/Build/build_schedule.scala Thu Feb 15 10:15:28 2024 +0100 @@ -1283,7 +1283,8 @@ ): Schedule = { val build_engine = new Engine - val store = build_engine.build_store(options, build_hosts = build_hosts, cache = cache) + val store = + build_engine.build_store(options, build_cluster = build_hosts.nonEmpty, cache = cache) val log_store = Build_Log.store(options, cache = cache) val build_options = store.options