summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-08-14 17:31:18 +0200
committerAndras Timar <andras.timar@collabora.com>2015-08-20 14:13:54 +0200
commit935799098491746462c63759cf59dc8a728b9239 (patch)
tree87442f50d68611c8cc130ed0b9035cb635d08ae2 /bin
parent9c2099cf6a2ca7f7cd741470a598603978ee7f90 (diff)
bin/run: fix LO_TRACE on Windows
exedir has to be in the c:/foo form, instead of /cygdrive/c/foo, otherwise a native wrapper set by LO_TRACE won't understand it. With this, it's possible to use DrMemory on executables invoked by bin/run. Change-Id: I5332342fdbf7d9e4859360dd7fbd3d74c149b2dc (cherry picked from commit 6d78caf68cd63a671342e777bfe78721b424f4d6) Signed-off-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/run2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/run b/bin/run
index c1b3f93afaf0..7823861d4a3b 100755
--- a/bin/run
+++ b/bin/run
@@ -21,7 +21,7 @@ if uname | grep -i CYGWIN >/dev/null; then
dir=$(realpath "${dir}/..")
done
- exedir="${dir}"/workdir/LinkTarget/Executable
+ exedir=$(cygpath -m "${dir}"/workdir/LinkTarget/Executable)
export URE_BOOTSTRAP=file:///$(cygpath -m "${dir}")/instdir/program/fundamental.ini
export PATH=${PATH:+$PATH:}"${dir}"/instdir/program