From e89008b657b2881523e91df2356900c98d2bdea2 Mon Sep 17 00:00:00 2001 From: Alexis Jeandet Date: Fri, 23 Mar 2018 00:37:24 +0100 Subject: Added get_asneeded_args method to Intel compiler. Signed-off-by: Alexis Jeandet --- mesonbuild/compilers/compilers.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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: -- cgit v1.1