llvm-project/lldb
Jonas Devlieghere 727bd89b60 [lldb] Simplify the logic to detect compiler flag support
This patch effectively does the following 3 things:

 - Centralize the logic to figure out if a compiler flag is supported.
 - Stop sanity checking whether the compiler works at all. While useful,
   that's not the decorator's responsibility.
 - Invoke the compiler with xcrun on Darwin so we know where to find the
   sysroot.

On my macOS Big Sur system, the clang invocation couldn't find libSystem
and would fail the sanity check in the decorator. This meant that the
test suite would always try to run the ASan/UBSan/TSan tests, regardless
of whether compiler-rt was built.

Differential revision: https://reviews.llvm.org/D95995
2021-02-04 08:52:56 -08:00
..
bindings [lldb/API] Expose Module::IsLoadedInTarget() to SB API (NFC) 2021-02-01 12:16:33 +01:00
cmake [lldb] Bump the required SWIG version to 3 2021-01-08 08:47:21 -08:00
docs [Branch-Rename] Fix some links 2021-02-01 16:43:21 +05:30
examples [lldb] Remove LLDB session dir and just store test traces in the respective test build directory 2020-12-04 11:43:10 +01:00
include/lldb [lldb/API] Expose Module::IsLoadedInTarget() to SB API (NFC) 2021-02-01 12:16:33 +01:00
packages/Python [lldb] Simplify the logic to detect compiler flag support 2021-02-04 08:52:56 -08:00
resources [lldb] Remove stale LLDB-Info.plist 2021-01-08 10:12:16 -08:00
scripts [lldb][AArch64/Linux] Show memory tagged memory regions 2020-11-20 11:21:59 +00:00
source [lldb] Honor the CPU type & subtype when launching on macOS 2021-02-03 13:42:00 -08:00
test [lldb] Make TestLocalVariables.py compatible with the new pass manager 2021-02-04 11:27:08 +01:00
third_party/Python/module Revert "[lldb] temporary commit to see why a test is failing only on lldb-aarch64-ubuntu" 2020-08-05 11:55:02 +02:00
tools [lldb] Fix debugserver-entitlements.plist path 2021-02-03 10:42:36 -08:00
unittests [lldb] [Process/FreeBSDRemote] Introduce arm (32-bit) support 2021-01-31 19:52:08 +01:00
utils [lldb] Remove LLDB session dir and just store test traces in the respective test build directory 2020-12-04 11:43:10 +01:00
.clang-format
.clang-tidy [lldb] Add .clang-tidy with customization to disable readability-identifier-naming 2020-03-09 12:50:28 -07:00
.gitignore
CMakeLists.txt [CMake] Remove dead code setting policies to NEW 2021-01-19 17:19:36 +02:00
CODE_OWNERS.txt
LICENSE.TXT
use_lldb_suite_root.py