summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-01-16 01:18:04 +0100
committerCarl Hetherington <cth@carlh.net>2022-01-16 19:16:22 +0100
commitb2d7764f628926763e648924b267855c59ab4349 (patch)
tree13ba198c59c1e3b2dfb59f54394507279504979d /src/lib
parentd409b51952ccc24719a322487c8514d8c38f58d9 (diff)
Fix directory_containing_executable() in some cases (#2163).
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/cross_osx.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/cross_osx.cc b/src/lib/cross_osx.cc
index ff40ffb70..d9355e161 100644
--- a/src/lib/cross_osx.cc
+++ b/src/lib/cross_osx.cc
@@ -104,7 +104,7 @@ cpu_info ()
boost::filesystem::path
directory_containing_executable ()
{
- return boost::dll::program_location().parent_path();
+ return boost::filesystem::canonical(boost::dll::program_location()).parent_path();
}