[libc++] Fix MacOS platform detection broken in Python 3
authorLouis Dionne <ldionne@apple.com>
Wed, 29 Apr 2020 13:56:52 +0000 (09:56 -0400)
committerLouis Dionne <ldionne@apple.com>
Wed, 29 Apr 2020 14:00:56 +0000 (10:00 -0400)
commit19123a3e0873f238f88c25cb0d8e63f263311f9b
treef80fd34f570644ad12d374e8301ca3e2922f2ef6
parentad97ccf6b26a29262c9cbf5b3e7f6e84c6dcf55f
[libc++] Fix MacOS platform detection broken in Python 3

Since 88af3ddb1e8a, libc++ will prefer Python 3 when available. It is
available on Apple platforms, so subprocess.check_output will return
bytes instead of str. This lead to comparisons against str to be false,
and the MacOS platform not being detected properly.
libcxx/utils/libcxx/test/target_info.py