[all-commits] [llvm/llvm-project] 516a01: Implement __isOSVersionAtLeast for Android

stephenhines via All-commits all-commits at lists.llvm.org
Tue Sep 15 12:55:56 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 516a01b5f36d4188778a34202cd11856d70ac808
      https://github.com/llvm/llvm-project/commit/516a01b5f36d4188778a34202cd11856d70ac808
  Author: Stephen Hines <srhines at google.com>
  Date:   2020-09-15 (Tue, 15 Sep 2020)

  Changed paths:
    M compiler-rt/lib/builtins/os_version_check.c

  Log Message:
  -----------
  Implement __isOSVersionAtLeast for Android

Add the implementation of __isOSVersionAtLeast for Android. Currently,
only the major version is checked against the API level of the platform
which is an integer. The API level is retrieved by reading the system
property ro.build.version.sdk (and optionally ro.build.version.codename
to see if the platform is released or not).

Patch by jiyong at google.com

Bug: 150860940
Bug: 134795810
Test: m

Reviewed By: srhines

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




More information about the All-commits mailing list