Siva Chandra Reddy 9ab6c1a99f [libc] Let wrappergen pick LLVM libc mangled name from aliasee file.
Along the way, made a change to run tool unittests when the target
"check-libc" is run by introducing a libc testsuite for tool unittests.

Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D93142
2020-12-11 14:33:03 -08:00

12 lines
286 B
CMake

add_libc_tool_unittest(
wrappergen_test
SRCS
wrappergen_test.cpp
ARGS
--path=${LIBC_SOURCE_DIR}
--tool=${CMAKE_BINARY_DIR}/bin/libc-wrappergen
--api=${LIBC_SOURCE_DIR}/test/utils/tools/WrapperGen/testapi.td
)
add_dependencies(wrappergen_test libc-wrappergen)