[all-commits] [llvm/llvm-project] 44e7d4: [Darwin][compiler-rt] kern.osproductversion unavai...

Julian Lettner via All-commits all-commits at lists.llvm.org
Wed Jul 29 17:22:28 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 44e7d449973948ddaa5f7c84a56dd79f8bb82e43
      https://github.com/llvm/llvm-project/commit/44e7d449973948ddaa5f7c84a56dd79f8bb82e43
  Author: Julian Lettner <julian.lettner at apple.com>
  Date:   2020-07-29 (Wed, 29 Jul 2020)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp

  Log Message:
  -----------
  [Darwin][compiler-rt] kern.osproductversion unavailable pre macOS 10.13

Add a fallback for `sysctl kern.osproductversion` for XNU 17 (macOS
10.13) and below, which do not provide this property.

Unfortunately, this means we have to take the detour via Darwin kernel
version again (at least for the fallback).

Reviewed By: delcypher

Differential Revision: https://reviews.llvm.org/D84892




More information about the All-commits mailing list