(environment: 'Environment', for_machine: MachineChoice, link_args: T.List[str])
return [l for l in link_args if l not in exclude]
Remove -L<system path> arguments.

    leaving these in will break builds where a user has a version of a library
    in the system path, and a different version not in the system path if they
    want to link against the non-system path version.
Remove -L<system path> arguments.
Remove - L<system path > arguments .
def strip_system_libdirs(environment: 'Environment', for_machine: MachineChoice, link_args: T.List[str]) -> T.List[str]:
    """Remove -L<system path> arguments.

    leaving these in will break builds where a user has a version of a library
    in the system path, and a different version not in the system path if they
    want to link against the non-system path version.
    """
    exclude = {f'-L{p}' for p in environment.get_compiler_system_dirs(for_machine)}
    return [l for l in link_args if l not in exclude]
def strip_system_libdirs ( environment : 'Environment' , for_machine : MachineChoice , link_args : T . List [ str ] ) -> T . List [ str ] : exclude = { f'-L{p}' for p in environment . get_compiler_system_dirs ( for_machine ) } return [ l for l in link_args if l not in exclude ]