From 39f4179af696025b93703c878213f54da512ab7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 29 Jul 2025 22:23:08 +0300 Subject: [PATCH] build-llvm: Fix using a relative PREFIX path This fixes a regression from 6d31f358d8c8bf5732e5d02aed8baf8bb9653d23, which shows up as "./strip-llvm.sh: 129: cd: can't cd to share" when running build-all.sh, fixing https://github.com/mstorsjo/llvm-mingw/issues/509, and the root issue behind https://github.com/mstorsjo/llvm-mingw/pull/507. --- build-llvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-llvm.sh b/build-llvm.sh index 73c4264..68a9631 100755 --- a/build-llvm.sh +++ b/build-llvm.sh @@ -108,7 +108,7 @@ if [ -z "$CHECKOUT_ONLY" ]; then exit 1 fi - if [ -z "$INSTRUMENTED" ]; then + if [ "$INSTRUMENTED" = "OFF" ]; then mkdir -p "$PREFIX" PREFIX="$(cd "$PREFIX" && pwd)" fi