Attempt to unbreak filesystem tests on certain linux distros.
authorEric Fiselier <eric@efcs.ca>
Wed, 22 Aug 2018 13:29:52 +0000 (13:29 +0000)
committerEric Fiselier <eric@efcs.ca>
Wed, 22 Aug 2018 13:29:52 +0000 (13:29 +0000)
commit03533087105994646891a903e4730fa68b8bf173
tree41d7764cd37f42c26c5baa195b06974ff58b8414
parent4d519fc3b5937f495e72de2adcff9ff566bfc31f
Attempt to unbreak filesystem tests on certain linux distros.

On some platforms clock_gettime is in librt, which we don't
link by default when building the tests. However it is required
by the filesystem tests.

This patch introduces a workaround which links librt whenever
the filesystem tests are enabled. The workaround should later
be replaced with a patch that selectively links both libc++fs
and librt only when building filesystem specific tests. However,
the way the test configuration is set up right now, this is
non-trivial.

llvm-svn: 340406
libcxx/utils/libcxx/test/target_info.py