This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Testsuite / Cilk Plus: Include library path in compile flags in gcc.dg/cilk-plus/cilk-plus.exp
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: "Iyer, Balaji V" <balaji dot v dot iyer at intel dot com>, gcc patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 30 Oct 2013 20:55:16 +0000
- Subject: Re: Testsuite / Cilk Plus: Include library path in compile flags in gcc.dg/cilk-plus/cilk-plus.exp
- Authentication-results: sourceware.org; auth=none
- References: <5270E0CD dot 9040600 at net-b dot de> <BF230D13CA30DD48930C31D4099330003A49500B at FMSMSX101 dot amr dot corp dot intel dot com> <52715C8B dot 4060100 at net-b dot de>
On Wed, 30 Oct 2013, Tobias Burnus wrote:
> On the other hand, one could use the existence of libcilkrts* as detected by
> the patch to decide whether to link or not: If the library is there, one can
> link – if not found, it is unlikely to work (unless it is, e.g. found in
> /usr/lib).
The way to detect it is to try to link with it, rather than just looking
for it in the build tree. If you just look for it in the build tree and
assume it's missing if not found there, you break installed testing. See
Andrew's recent patch fixing this for asan/ubsan testing (or what I did
for tests linking with libatomic on the C11-atomic branch).
--
Joseph S. Myers
joseph@codesourcery.com