Re: [Mesa-dev] [PATCH] configure.ac: Fix -latomic test

2018-03-29 Thread Nicolas Boichat
Scrap this, I guess I should update meson.build, too. Will send v2 in a few minutes. On Thu, Mar 29, 2018 at 4:26 PM, Nicolas Boichat wrote: > From: Nicolas Boichat > > When compiling with LLVM 6.0, the test fails to detect that > -latomic is actually required, as the atomic call is inlined. >

[Mesa-dev] [PATCH] configure.ac: Fix -latomic test

2018-03-29 Thread Nicolas Boichat
From: Nicolas Boichat When compiling with LLVM 6.0, the test fails to detect that -latomic is actually required, as the atomic call is inlined. In the code itself (src/util/disk_cache.c), we see this pattern: p_atomic_add(cache->size, - (uint64_t)size); where cache->size is an uint64_t *, and re