This is an archive of the discontinued LLVM Phabricator instance.

[lit][tests]Add feature libcxx-used and use it in llvm-*-fuzzer tests
ClosedPublic

Authored by xingxue on Apr 29 2019, 8:40 AM.

Details

Summary

When a LLVM binary such as llvm-*-fuzzer is built with libc++, it has dependency on libc++. The path to find shared libraries specified in llvm-*-fuzzer is relative. As a result, these binaries cannot be copied to an arbitrary directory and launched from there. Changes in this patch add a LIT feature to indicate that libc++ is used to build and, based on the feature exclude test cases that test by copying llvm-*-fuzzer binaries to a directory.

The changes in this patch use macro LLVM_LIBCXX_USED introduced in patch https://reviews.llvm.org/D61016. D61016 should be committed before this patch.

Diff Detail

Repository
rL LLVM

Event Timeline

xingxue created this revision.Apr 29 2019, 8:40 AM

The limitation seems unfortunate, but makes sense.

This revision is now accepted and ready to land.May 13 2019, 3:40 PM
This revision was automatically updated to reflect the committed changes.