in lib/src/config_provider/spec_utils.dart [376:401]
String findDylibAtDefaultLocations() {
String? k;
if (Platform.isLinux) {
for (final l in strings.linuxDylibLocations) {
k = findLibclangDylib(l);
if (k != null) return k;
}
} else if (Platform.isWindows) {
for (final l in strings.windowsDylibLocations) {
k = findLibclangDylib(l);
if (k != null) return k;
}
} else if (Platform.isMacOS) {
for (final l in strings.macOsDylibLocations) {
k = findLibclangDylib(l);
if (k != null) return k;
}
} else {
throw Exception('Unsupported Platform.');
}
_logger.severe("Couldn't find dynamic library in default locations.");
_logger.severe(
"Please supply one or more path/to/llvm in ffigen's config under the key '${strings.llvmPath}'.");
throw Exception("Couldn't find dynamic library in default locations.");
}