mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
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.
This commit is contained in:
@@ -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}";
|
||||
|
||||
Reference in New Issue
Block a user