[all-commits] [llvm/llvm-project] ce67db: [Clang] Force rtlib=platform in test to avoid fail...
Kristina Brooks via All-commits
all-commits at lists.llvm.org
Sun Jan 5 23:23:49 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: ce67db4185374016a9f5745869f9dbedfc12e6d2
https://github.com/llvm/llvm-project/commit/ce67db4185374016a9f5745869f9dbedfc12e6d2
Author: Kristina Brooks <notstina at gmail.com>
Date: 2020-01-06 (Mon, 06 Jan 2020)
Changed paths:
M clang/test/Driver/cross-linux.c
Log Message:
-----------
[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
More information about the All-commits
mailing list