diff options
author | Alexis Jeandet <alexis.jeandet@member.fsf.org> | 2018-03-23 00:37:24 +0100 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-03-23 21:08:37 +0200 |
commit | e89008b657b2881523e91df2356900c98d2bdea2 (patch) | |
tree | 061c7dabdebd82eaa49471d1c1930fbdb1d70b05 | |
parent | 1a8bc77f5382b5555a846f71ccf90d84cd934b70 (diff) | |
download | meson-e89008b657b2881523e91df2356900c98d2bdea2.zip meson-e89008b657b2881523e91df2356900c98d2bdea2.tar.gz meson-e89008b657b2881523e91df2356900c98d2bdea2.tar.bz2 |
Added get_asneeded_args method to Intel compiler.
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
-rw-r--r-- | mesonbuild/compilers/compilers.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 65c942b..a28a225 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -1232,6 +1232,14 @@ class IntelCompiler: raise MesonException('Unreachable code when converting icc type to gcc type.') return get_gcc_soname_args(gcc_type, prefix, shlib_name, suffix, path, soversion, is_shared_module) + # TODO: centralise this policy more globally, instead + # of fragmenting it into GnuCompiler and ClangCompiler + def get_asneeded_args(self): + if self.icc_type == CLANG_OSX: + return APPLE_LD_AS_NEEDED + else: + return GNU_LD_AS_NEEDED + def get_std_shared_lib_link_args(self): # FIXME: Don't know how icc works on OSX # if self.icc_type == ICC_OSX: |