diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-10-02 18:37:23 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-10-02 12:52:16 -0400 |
commit | 62ec92c8b0f92c3e8d4fd2520801194a1546db06 (patch) | |
tree | f4456b3ca2e3fa5b74c4d02d7d3a58e915b9d5fc /mesonbuild/compilers.py | |
parent | 084b854ce057ee6d954c24e58321caa92f542bc5 (diff) | |
download | meson-62ec92c8b0f92c3e8d4fd2520801194a1546db06.zip meson-62ec92c8b0f92c3e8d4fd2520801194a1546db06.tar.gz meson-62ec92c8b0f92c3e8d4fd2520801194a1546db06.tar.bz2 |
Set soname with clang properly.
Diffstat (limited to 'mesonbuild/compilers.py')
-rw-r--r-- | mesonbuild/compilers.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py index 0310e01..19fb888 100644 --- a/mesonbuild/compilers.py +++ b/mesonbuild/compilers.py @@ -2074,6 +2074,17 @@ class ClangCompiler(): # so it might change semantics at any time. return ['-include-pch', os.path.join (pch_dir, self.get_pch_name (header))] + def get_soname_args(self, shlib_name, path, soversion): + if self.clang_type == CLANG_STANDARD: + gcc_type = GCC_STANDARD + elif self.clang_type == CLANG_OSX: + gcc_type = GCC_OSX + elif self.clang_type == CLANG_WIN: + gcc_type = GCC_MINGW + else: + raise MesonException('Unreachable code when converting clang type to gcc type.') + return get_gcc_soname_args(gcc_type, shlib_name, path, soversion) + class ClangCCompiler(ClangCompiler, CCompiler): def __init__(self, exelist, version, clang_type, is_cross, exe_wrapper=None): CCompiler.__init__(self, exelist, version, is_cross, exe_wrapper) |