The `tools` directory depends on `llvm_gtest` which is not immediately availible with a runtimes build. This patch builds the `llvm_gtest` target if it isn't present. Additionally, we use the CMake binary directory to find the tool binary, which is different when using a runtimes build. Using the LLVM binary directory should match both build conditions. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D139348
LLVM libc ========= This directory and its subdirectories contain source code for llvm-libc, a retargetable implementation of the C standard library. LLVM is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt.