[all-commits] [llvm/llvm-project] 562c6b: Add a `%darwin_min_target_with_tls_support` lit su...

danliew via All-commits all-commits at lists.llvm.org
Wed Feb 19 15:42:20 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 562c6b80192243b141d1ddd15d1827c860992147
      https://github.com/llvm/llvm-project/commit/562c6b80192243b141d1ddd15d1827c860992147
  Author: Dan Liew <dan at su-root.co.uk>
  Date:   2020-02-19 (Wed, 19 Feb 2020)

  Changed paths:
    M compiler-rt/test/lit.common.cfg.py
    M compiler-rt/test/tsan/dtls.c
    M compiler-rt/test/tsan/mutexset7.cpp
    M compiler-rt/test/tsan/tls_race.cpp
    M compiler-rt/test/tsan/tls_race2.cpp

  Log Message:
  -----------
  Add a `%darwin_min_target_with_tls_support` lit substitution.

Summary:
This substitution expands to the appropriate minimum deployment target
flag where thread local storage (TLS) was first introduced on Darwin
platforms. For all other platforms the substitution expands to an empty
string.

E.g. for macOS the substitution expands to `-mmacosx-version-min=10.12`

This patch adds support for the substitution (and future substitutions)
by doing a minor refactor and then uses the substitution in the relevant
TSan tests.

rdar://problem/59568956

Reviewers: yln, kubamracek, dvyukov, vitalybuka

Subscribers: #sanitizers, llvm-commits

Tags: #sanitizers, #llvm

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




More information about the All-commits mailing list