diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-08-28 15:17:00 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2018-08-29 15:51:23 -0700 |
commit | bead8287a5c047f31e6efe5c49039278341ae46c (patch) | |
tree | 28c54758068db7d900a2060d4d229454ccc09c45 /mesonbuild/compilers/d.py | |
parent | b86f2fd17f1f0825e16b1df2b1f3f598c0d77b85 (diff) | |
download | meson-bead8287a5c047f31e6efe5c49039278341ae46c.zip meson-bead8287a5c047f31e6efe5c49039278341ae46c.tar.gz meson-bead8287a5c047f31e6efe5c49039278341ae46c.tar.bz2 |
Improve support for macOS dylib versioning
We now use the soversion to set compatibility_version and
current_version by default. This is the only sane thing we can do by
default because of the restrictions on the values that can be used for
compatibility and current version.
Users can override this value with the `darwin_versions:` kwarg, which
can be a single value or a two-element list of values. The first one
is the compatibility version and the second is the current version.
Fixes https://github.com/mesonbuild/meson/issues/3555
Fixes https://github.com/mesonbuild/meson/issues/1451
Diffstat (limited to 'mesonbuild/compilers/d.py')
-rw-r--r-- | mesonbuild/compilers/d.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py index a03af3e..c81c048 100644 --- a/mesonbuild/compilers/d.py +++ b/mesonbuild/compilers/d.py @@ -118,16 +118,14 @@ class DCompiler(Compiler): def get_std_shared_lib_link_args(self): return ['-shared'] - def get_soname_args(self, prefix, shlib_name, suffix, soversion, is_shared_module): + def get_soname_args(self, *args): # FIXME: Make this work for cross-compiling gcc_type = GCC_STANDARD if is_windows(): gcc_type = GCC_CYGWIN if is_osx(): gcc_type = GCC_OSX - - return get_gcc_soname_args(gcc_type, prefix, shlib_name, suffix, soversion, is_shared_module) - + return get_gcc_soname_args(gcc_type, *args) def get_feature_args(self, kwargs, build_to_src): res = [] |