use of com.facebook.buck.rules.ToolProvider in project buck by facebook.
the class RustBinaryDescription method findDepsForTargetFromConstructorArgs.
@Override
public Iterable<BuildTarget> findDepsForTargetFromConstructorArgs(BuildTarget buildTarget, CellPathResolver cellRoots, Arg constructorArg) {
ImmutableSet.Builder<BuildTarget> deps = ImmutableSet.builder();
ToolProvider compiler = rustBuckConfig.getRustCompiler();
deps.addAll(compiler.getParseTimeDeps());
deps.addAll(CxxPlatforms.getParseTimeDeps(cxxPlatforms.getValues()));
deps.addAll(rustBuckConfig.getLinker().map(ToolProvider::getParseTimeDeps).orElse(ImmutableList.of()));
return deps.build();
}
Aggregations