summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-08-14 17:31:18 +0200
committerMichael Stahl <mstahl@redhat.com>2015-08-17 13:49:49 +0200
commit0cbe071b049fdbcbeeea3b1589be4312fa4a39ea (patch)
tree55c3ce707dd9631593e874484aa8c567f12028a3 /bin
parent31050925ad6788c627af23f751bdbf5768cc7afa (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