[libc] Simplify integration tests by eliminating the artificial sysroot.
authorSiva Chandra Reddy <sivachandra@google.com>
Sat, 4 Mar 2023 05:35:45 +0000 (05:35 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Mon, 6 Mar 2023 07:37:48 +0000 (07:37 +0000)
commita7d869aabbb34e0148d0f18cf18a6ab8a0213873
treec7e030ea53291cb6191fc85e6fb40b499e7077fa
parent1a6dfa2beeb4492472329cf7cf059d97b289cf37
[libc] Simplify integration tests by eliminating the artificial sysroot.

The test binaries are built like any other executable but with two
additional linker options -static and -nostdlib.

Reviewed By: jhuber6

Differential Revision: https://reviews.llvm.org/D145298
libc/cmake/modules/LLVMLibCTestRules.cmake
libc/startup/linux/aarch64/start.cpp
libc/startup/linux/x86_64/start.cpp