resolveBytecodeTools function
Future<BytecodeTools>
resolveBytecodeTools(
- ResolvedToolchain toolchain, {
- required bool needsKotlin,
- bool needsR8 = false,
Implementation
Future<BytecodeTools> resolveBytecodeTools(
ResolvedToolchain toolchain, {
required bool needsKotlin,
bool needsR8 = false,
}) async => BytecodeTools(
javac: await toolchain.findJavac(),
d8: await toolchain.findD8(),
r8: needsR8 ? await toolchain.findR8() : null,
kotlinc: needsKotlin ? await toolchain.findKotlinc() : null,
);