build.sh: make CHROMIUM_XR_DIR absolute so relative paths work

Found in review by GPT-6 Astra.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
saphidandClaude Opus 5.5 committed 2026-09-27 09:43:12 +10:00
1 parent 0151906c79
commit 3eaf618acf
1 file changed
+2
+2
View File
@@ -21,6 +21,8 @@ PATCHES=$(cd "$(dirname "$0")/../patches" && pwd)
CL_REF=${CL_REF:-refs/changes/79/8132979/44}
mkdir -p "$W"
# Absolute, so the paths below still work after the cd (e.g. CHROMIUM_XR_DIR=work).
W=$(cd "$W" && pwd)
cd "$W"
stage() { echo "$(date -Is) $*" | tee -a "$W/stage"; }
# Stops the build before the disk fills up.