From 19aed5b1f2824c355337e740ef0fe807e50e4439 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 12 Dec 2018 11:13:35 +0000 Subject: [PATCH] If a path already has a : treat it as if it were already native * wslpath seems to fail on converting "C:\foo" to windows path even though it has nothing to do. --- util/buildscripts/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util/buildscripts/build.sh b/util/buildscripts/build.sh index 765995dfd..1df2c892d 100755 --- a/util/buildscripts/build.sh +++ b/util/buildscripts/build.sh @@ -8,7 +8,9 @@ LLVM_ARM32=$(readlink -f $(dirname $0)/support/llvm_arm32) LLVM_ARM64=$(readlink -f $(dirname $0)/support/llvm_arm64) native_path() { - if which cygpath >/dev/null 2>&1; then + if echo "${1}" | grep -q :; then + echo "${1}"; + elif which cygpath >/dev/null 2>&1; then cygpath -w "${1}"; elif which wslpath >/dev/null 2>&1; then wslpath -w "${1}";