aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/c.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-11-12 23:31:45 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2017-11-26 17:34:01 +0200
commitfa6f01d096fbf3d84d68070d6592cd8d5b761e1b (patch)
treefcf1cde46fafacf70fcd720497166315fb1bc4dd /mesonbuild/compilers/c.py
parent655137a74b366a3c03df24cedeafa747787f15f5 (diff)
downloadmeson-fa6f01d096fbf3d84d68070d6592cd8d5b761e1b.zip
meson-fa6f01d096fbf3d84d68070d6592cd8d5b761e1b.tar.gz
meson-fa6f01d096fbf3d84d68070d6592cd8d5b761e1b.tar.bz2
Use absolute paths for rpaths on OSX.
Diffstat (limited to 'mesonbuild/compilers/c.py')
-rw-r--r--mesonbuild/compilers/c.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py
index 021f5d7..317a4d7 100644
--- a/mesonbuild/compilers/c.py
+++ b/mesonbuild/compilers/c.py
@@ -90,6 +90,8 @@ class CCompiler(Compiler):
# The default behavior is this, override in MSVC
def build_rpath_args(self, build_dir, from_dir, rpath_paths, build_rpath, install_rpath):
+ if self.id == 'clang' and self.clang_type == compilers.CLANG_OSX:
+ return self.build_osx_rpath_args(build_dir, rpath_paths, build_rpath)
return self.build_unix_rpath_args(build_dir, from_dir, rpath_paths, build_rpath, install_rpath)
def get_dependency_gen_args(self, outtarget, outfile):