nativeStaticLibsNote function
The flag list from rustc's native-static-libs: note in cargoOutput,
or null when the note is absent. Quoted segments ("...", '...',
with \ escapes) stay one flag, so SDK paths containing spaces survive
the round trip through _persistedNativeLinkFlags.
Implementation
List<String>? nativeStaticLibsNote(String cargoOutput) {
const marker = 'native-static-libs:';
for (final line in cargoOutput.split('\n').reversed) {
final i = line.indexOf(marker);
if (i < 0) continue;
final flags = line.substring(i + marker.length).trim();
return flags.isEmpty ? const [] : splitLinkFlags(flags);
}
return null;
}