[all-commits] [llvm/llvm-project] 19123a: [libc++] Fix MacOS platform detection broken in Py...

Louis Dionne via All-commits all-commits at lists.llvm.org
Wed Apr 29 07:02:15 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 19123a3e0873f238f88c25cb0d8e63f263311f9b
      https://github.com/llvm/llvm-project/commit/19123a3e0873f238f88c25cb0d8e63f263311f9b
  Author: Louis Dionne <ldionne at apple.com>
  Date:   2020-04-29 (Wed, 29 Apr 2020)

  Changed paths:
    M libcxx/utils/libcxx/test/target_info.py

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list