summaryrefslogtreecommitdiff
path: root/src
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:04:03 +0100
commit81a9a5b520ae6d1b89e6a2eb052f023ba329bcc4 (patch)
tree4e3e19060f2f0cc139c3f4d3b47b6f83845d3d8a /src
parentf5c8aa4a7dd65eb9c343cd88d6dcad2354b73808 (diff)
Fix directory_containing_executable() in some cases (#2163).
Diffstat (limited to 'src')
-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();
}