tuned;
authorwenzelm
Sun, 13 Apr 2025 12:26:30 +0200
changeset 82498 6fda350c3726
parent 82497 b7554954d697
child 82499 d46bc8a03141
tuned;
src/Pure/System/executable.scala
--- a/src/Pure/System/executable.scala	Sun Apr 13 12:23:48 2025 +0200
+++ b/src/Pure/System/executable.scala	Sun Apr 13 12:26:30 2025 +0200
@@ -23,7 +23,7 @@
     val exe_dir = exe_path.dir
     val exe = exe_path.base
 
-    val ldd_lines = {
+    val lines = {
       val ldd = if (Platform.is_macos) "otool -L" else "ldd"
       val script = mingw.bash_script(env_prefix + ldd + " " + File.bash_path(exe))
       split_lines(Isabelle_System.bash(script, cwd = exe_dir).check.out)
@@ -37,13 +37,13 @@
       if (Platform.is_macos) {
         val Pattern = """^\s*(/.+)\s+\(.*\)$""".r
         for {
-          case Pattern(lib) <- ldd_lines
+          case Pattern(lib) <- lines
           if !lib.startsWith("@executable_path/") && filter(lib_name(lib))
         } yield lib
       }
       else {
         val Pattern = """^.*=>\s*(/.+)\s+\(.*\)$""".r
-        for { case Pattern(lib) <- ldd_lines if filter(lib_name(lib)) }
+        for { case Pattern(lib) <- lines if filter(lib_name(lib)) }
           yield File.standard_path(mingw.platform_path(lib))
       }