[all-commits] [llvm/llvm-project] a89982: [Sanitizers][Darwin] Allows '-mtargetos' to used t...

thetruestblue via All-commits all-commits at lists.llvm.org
Tue Jul 26 11:26:05 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a89982c40de41581bdef1e2088d22fdb16fd8404
  Author: Blue Gaston <blueg at Blues-MacBook-Pro.local>
  Date:   2022-07-26 (Tue, 26 Jul 2022)

  Changed paths:
    M compiler-rt/test/lit.common.cfg.py

  Log Message:
  [Sanitizers][Darwin] Allows '-mtargetos' to used to set minimum deployment target.

Currently, m{platform}-version-min is default flag used to set min deployment target within compilter-rt and sanitizers.
However, clang uses flags -target and -mtargetos for setting target triple and minimum deployment targets.
-mtargetos will be the preferred flag to set min version in the future and the
${platform}-version-min flag will not be used for future platforms.

This change allows darwin platforms to use either ${platform}-min-version or -mtargetos
without breaking lit test flags that allows for overriding the default min value in lit tests
Tests using flags: 'darwin_min_target_with_tls_support', 'min_macos_deployment_target'
will no longer fail if they use mtargetos instead of version-min.


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

More information about the All-commits mailing list