Class FileListableLinkerInputArg

  • All Implemented Interfaces:
    AddsToRuleKey, Arg, HasSourcePath

    public class FileListableLinkerInputArg
    extends Object
    implements Arg, HasSourcePath
    Arg that represents object file that should be linked into resulting binary using normal mechanism, e.g. passed to the linker without any additional surrounding flags. Sometimes these arguments can be grouped into a single text file that linker can pick up. This is mostly to simplify and shorten command line that is used to invoke the linker. This arg represents such kind of object file in the list of args, so later we can easily create such file list for the linker.
    • Method Detail

      • withSourcePathArg

        public static Arg withSourcePathArg​(SourcePathArg value)
      • from

        public static<Arg> from​(<SourcePathArg> values)
      • appendToCommandLine

        public void appendToCommandLine​(java.util.function.Consumer<String> consumer,
                                        SourcePathResolverAdapter pathResolver)
        Description copied from interface: Arg
        Feed the contents of the Arg to the supplied consumer. This call may feed any number of elements (including zero) into the consumer. This is only ever safe to call when the rule is running, as it may do things like resolving source paths.
        Specified by:
        appendToCommandLine in interface Arg