upstreaming in https://github.com/dart-lang/sdk/pull/51614 --- a/build/config/linux/pkg-config.py +++ b/build/config/linux/pkg-config.py @@ -161,7 +161,7 @@ # For now just split on spaces to get the args out. This will break if # pkgconfig returns quoted things with spaces in them, but that doesn't seem # to happen in practice. - all_flags = flag_string.strip().split(' ') + all_flags = flag_string.decode('utf-8').strip().split(' ') except: print("Could not run pkg-config.") sys.exit(1)