(self, args: T.List[str])
return new_args
This function attempts to fix bogus link arguments that llvm-config
        generates.

        Currently it works around the following:
            - FreeBSD: when statically linking -l/usr/lib/libexecinfo.so will
              be generated, strip the -l in cases like this.
            - Windows: We may get -LIBPATH:... which is later interpreted as
              "-L IBPATH:...", if we're using an msvc like compilers convert
              that to "/LIBPATH", otherwise to "-L ..."
This function attempts to fix bogus link arguments that llvm-config
        generates.
This function attempts to fix bogus link arguments that llvm - config generates .
def __fix_bogus_link_args(self, args: T.List[str]) -> T.List[str]:
        """This function attempts to fix bogus link arguments that llvm-config
        generates.

        Currently it works around the following:
            - FreeBSD: when statically linking -l/usr/lib/libexecinfo.so will
              be generated, strip the -l in cases like this.
            - Windows: We may get -LIBPATH:... which is later interpreted as
              "-L IBPATH:...", if we're using an msvc like compilers convert
              that to "/LIBPATH", otherwise to "-L ..."
        """

        new_args = []
        for arg in args:
            if arg.startswith('-l') and arg.endswith('.so'):
                new_args.append(arg.lstrip('-l'))
            elif arg.startswith('-LIBPATH:'):
                cpp = self.env.coredata.compilers[self.for_machine]['cpp']
                new_args.extend(cpp.get_linker_search_args(arg.lstrip('-LIBPATH:')))
            else:
                new_args.append(arg)
        return new_args
def __fix_bogus_link_args ( self , args : T . List [ str ] ) -> T . List [ str ] : new_args = [ ] for arg in args : if arg . startswith ( '-l' ) and arg . endswith ( '.so' ) : new_args . append ( arg . lstrip ( '-l' ) ) elif arg . startswith ( '-LIBPATH:' ) : cpp = self . env . coredata . compilers [ self . for_machine ] [ 'cpp' ] new_args . extend ( cpp . get_linker_search_args ( arg . lstrip ( '-LIBPATH:' ) ) ) else : new_args . append ( arg ) return new_args