more explicit check;
authorwenzelm
Wed, 23 Aug 2023 14:23:41 +0200
changeset 78572 11cf77478d3e
parent 78571 ed07f0ebf31c
child 78573 980f3cfcbc2c
more explicit check;
src/Pure/Tools/build_cluster.scala
--- a/src/Pure/Tools/build_cluster.scala	Wed Aug 23 11:44:08 2023 +0200
+++ b/src/Pure/Tools/build_cluster.scala	Wed Aug 23 14:23:41 2023 +0200
@@ -148,6 +148,11 @@
     def init(): Unit = remote_isabelle.init()
 
     def start(): Process_Result = {
+      val remote_ml_platform = remote_isabelle.getenv("ML_PLATFORM")
+      if (remote_ml_platform != build_context.ml_platform) {
+        error("Bad ML_PLATFORM: found " + remote_ml_platform +
+          ", but expected " + build_context.ml_platform)
+      }
       val script =
         Build.build_worker_command(host,
           ssh = ssh,