diff options
author | Kristina Brooks <notstina@gmail.com> | 2020-01-06 07:21:13 +0000 |
---|---|---|
committer | Kristina Brooks <notstina@gmail.com> | 2020-01-06 07:21:15 +0000 |
commit | ce67db4185374016a9f5745869f9dbedfc12e6d2 (patch) | |
tree | 8f321f32ed40f7ba95c229733c940b1f0392d0cb /lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp | |
parent | 19ace449a3da4058428495283b3b15826f8d7d34 (diff) | |
download | bcm5719-llvm-ce67db4185374016a9f5745869f9dbedfc12e6d2.tar.gz bcm5719-llvm-ce67db4185374016a9f5745869f9dbedfc12e6d2.zip |
[Clang] Force rtlib=platform in test to avoid fails with CLANG_DEFAULT_RTLIB
Driver test `cross-linux.c` fails when CLANG_DEFAULT_RTLIB is "compiler-rt"
as the it expects a GCC-style `"crtbegin.o"` after `"crti.o"` but instead
receives something akin to this in the frontend invocation:
```
"crt1.o" "crti.o"
"/o/b/llvm/bin/../lib/clang/10.0.0/lib/linux/clang_rt.crtbegin-x86_64.o"
```
This patch adds an override to `cross-linux.c` tests so the expected result
is produced regardless of the compile-time default rtlib, as having tests
fail due to that is fairly confusing. After applying the patch, the test
passes regardless of the CLANG_DEFAULT_RTLIB setting.
Differential Revision: https://reviews.llvm.org/D72236
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp')
0 files changed, 0 insertions, 0 deletions