[PATCH] D74802: Add a `%darwin_min_target_with_tls_support` lit substitution.

Dan Liew via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 18 15:53:24 PST 2020


delcypher created this revision.
delcypher added reviewers: yln, kubamracek, dvyukov, vitalybuka.
Herald added projects: Sanitizers, LLVM.
Herald added a subscriber: Sanitizers.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D74802

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74802.245292.patch
Type: text/x-patch
Size: 4936 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200218/daaf51f7/attachment.bin>


More information about the llvm-commits mailing list