Commit 26f5048d5 for llama.cpp

commit 26f5048d5c288cec7ccacc4131ccfafaedbc52a7
Author: Sebastian Kuzminsky <seb@highlab.com>
Date:   Tue Nov 24 06:07:00 2026 -0700

    fix building in symlinked directories (#32903)

    * fix building in symlinked directories

    My checkout is in a symlinked directory, so that the cmake CWD differs
    from its realpath:
    ```
    $ echo $PWD
    /home/[READACTED]/llama.cpp
    $ realpath $PWD
    /data/home/[READACTED]/llama.cpp
    ```

    The build here fails with this error:
    ```
    CMake Error: Unable to read from file:
      ../../../../../../../../data/home/[READACTED]/llama.cpp/build/ui/apps/chat/dist/_app/immutable/assets/0.Cc4cGcci.css
    because:
      Can't lstat ../../../../../../../../data/home/[READACTED]/llama.cpp/build/ui/apps/chat/dist/_app/immutable/assets/0.Cc4cGcci.css
    CMake Error at /home/[REDACTED]/llama.cpp/scripts/ui-assets.cmake:229 (file):
      file failed to compress:
      /home/[REDACTED]/llama.cpp/build/ui/apps/chat/ui-gzip/_gzip/_app/immutable/assets/0.Cc4cGcci.css
    Call Stack (most recent call first):
      /home/[REDACTED]/llama.cpp/scripts/ui-assets.cmake:629 (emit_files)
    ```

    This is because the cmake `emit_files` function uses relative paths and
    is inconsistent about its use of realpath.

    This commit fixes the build in my environment by switching from relative
    to absolute paths for the archive member files, so that the distinction
    between realpath and non-realpath doesn't mess things up.

    * refactor: Apply suggestion

    ---------

    Co-authored-by: Aleksander Grygier <aleksander.grygier@gmail.com>

diff --git a/scripts/ui-assets.cmake b/scripts/ui-assets.cmake
index 8079c1c09..62f58e423 100644
--- a/scripts/ui-assets.cmake
+++ b/scripts/ui-assets.cmake
@@ -225,7 +225,10 @@ function(emit_files dist_dir)
             set(gzip_dir  "${gzip_root}/_gzip")
             file(REMOVE_RECURSE "${gzip_root}")
             foreach(f IN LISTS assets)
-                get_filename_component(asset_path "${dist_dir}/${f}" REALPATH)
+                get_filename_component(asset_path "${dist_dir}/${f}" ABSOLUTE)
+                if(IS_SYMLINK "${asset_path}")
+                    get_filename_component(asset_path "${asset_path}" REALPATH)
+                endif()
                 get_filename_component(dst_dir "${gzip_dir}/${f}" DIRECTORY)
                 file(MAKE_DIRECTORY "${dst_dir}")
                 file(ARCHIVE_CREATE