From 104ffb3bc0d4d43f36688ffa778201bed4a71e45 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 19 Feb 2026 22:54:35 +0800 Subject: update comments --- xmake/core/base/os.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'xmake/core/base/os.lua') diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua index b8ce09f68..1766d28f5 100644 --- a/xmake/core/base/os.lua +++ b/xmake/core/base/os.lua @@ -202,6 +202,12 @@ end -- if tmpdir_root is a symbolic link, os.tmpdir() may return a path that differs -- from the path style returned by os.curdir() (e.g. on Haiku). +-- +-- Using a consistent root path can avoid errors in relative path resolution. +-- +-- e.g. +-- tmpdir: /tmp/.xmake0/260217/ -> /boot/system/cache/tmp/.xmake0/260217 +-- curdir: /boot/system/cache/tmp/.xmake0/260217 function os._resolve_tmpdir(tmpdir_root) if os.islink(tmpdir_root) then tmpdir_root = os.readlink(tmpdir_root) or tmpdir_root -- cgit v1.3.1