Add debug info to figure out why the bots are unhappy (flutter/engine#6369)

This commit is contained in:
Michael Goderbauer
2018-09-27 16:27:03 -07:00
committed by GitHub
parent 74a8fa9807
commit a702b138be

View File

@@ -41,6 +41,9 @@ int _checkIos(String outPath, Iterable<String> builds) {
for (String build in builds) {
final String libFlutter = p.join(outPath, build, 'Flutter.framework', 'Flutter');
final String stdout = Process.runSync('nm', <String>['-gUm', libFlutter]).stdout;
print('+++ DEBUG: stdout of nm +++');
print(stdout);
print('+++ END: stdout of nm +++');
final Iterable<NmEntry> unexpectedEntries = NmEntry.parse(stdout).where((NmEntry entry) {
return !((entry.type == '(__DATA,__common)' && entry.name.startsWith('_Flutter'))
|| (entry.type == '(__DATA,__objc_data)'
@@ -64,6 +67,9 @@ int _checkAndroid(String outPath, Iterable<String> builds) {
for (String build in builds) {
final String libFlutter = p.join(outPath, build, 'libflutter.so');
final String stdout = Process.runSync('nm', <String>['-gU', libFlutter]).stdout;
print('+++ DEBUG: stdout of nm +++');
print(stdout);
print('+++ END: stdout of nm +++');
final Iterable<NmEntry> entries = NmEntry.parse(stdout);
if (entries.isEmpty) {
print('ERROR: $libFlutter exports no symbol');