(self, args: T.Sequence[str])
return result
MPI wrappers return a bunch of garbage args.
        Drop -O2 and everything that is not needed.
MPI wrappers return a bunch of garbage args.
        Drop -O2 and everything that is not needed.
MPI wrappers return a bunch of garbage args . Drop - O2 and everything that is not needed .
def _filter_link_args(self, args: T.Sequence[str]) -> T.List[str]:
        """
        MPI wrappers return a bunch of garbage args.
        Drop -O2 and everything that is not needed.
        """
        result = []
        include_next = False
        for f in args:
            if self._is_link_arg(f):
                result.append(f)
                if f in ('-L', '-Xlinker'):
                    include_next = True
            elif include_next:
                include_next = False
                result.append(f)
        return result
def _filter_link_args ( self , args : T . Sequence [ str ] ) -> T . List [ str ] : result = [ ] include_next = False for f in args : if self . _is_link_arg ( f ) : result . append ( f ) if f in ( '-L' , '-Xlinker' ) : include_next = True elif include_next : include_next = False result . append ( f ) return result