Skip to content

Commit 62ec92c

Browse files
committed
Set soname with clang properly.
1 parent 084b854 commit 62ec92c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

mesonbuild/compilers.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2074,6 +2074,17 @@ def get_pch_use_args(self, pch_dir, header):
20742074
# so it might change semantics at any time.
20752075
return ['-include-pch', os.path.join (pch_dir, self.get_pch_name (header))]
20762076

2077+
def get_soname_args(self, shlib_name, path, soversion):
2078+
if self.clang_type == CLANG_STANDARD:
2079+
gcc_type = GCC_STANDARD
2080+
elif self.clang_type == CLANG_OSX:
2081+
gcc_type = GCC_OSX
2082+
elif self.clang_type == CLANG_WIN:
2083+
gcc_type = GCC_MINGW
2084+
else:
2085+
raise MesonException('Unreachable code when converting clang type to gcc type.')
2086+
return get_gcc_soname_args(gcc_type, shlib_name, path, soversion)
2087+
20772088
class ClangCCompiler(ClangCompiler, CCompiler):
20782089
def __init__(self, exelist, version, clang_type, is_cross, exe_wrapper=None):
20792090
CCompiler.__init__(self, exelist, version, is_cross, exe_wrapper)

0 commit comments

Comments
 (0)