]> code.ossystems Code Review - openembedded-core.git/commit
mesa: Help compile with clang/mips
authorKhem Raj <raj.khem@gmail.com>
Mon, 20 Jan 2020 17:52:27 +0000 (09:52 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 21 Jan 2020 12:52:48 +0000 (12:52 +0000)
commita18ad964d000a15ac4039c893dd9d3f8e545c223
treedb23f08d61931c0dd45a1b96596884accf153914
parentd32626c3c5b034b72495c2949b3e94ca55f04a9b
mesa: Help compile with clang/mips

meson is detecting it does not support 64bit attomics but then when
defining local suppliments confused clang

../mesa-19.3.1/src/util/u_atomic.c:38:1: error: cannot redeclare builtin function '__sync_add_and_fetch_8'
__sync_add_and_fetch_8(uint64_t *ptr, uint64_t val)
^
../mesa-19.3.1/src/util/u_atomic.c:38:1: note: '__sync_add_and_fetch_8' is a builtin with type 'long long (volatile long long *, long long, ...)'
../mesa-19.3.1/src/util/u_atomic.c:38:1: error: definition of builtin function '__sync_add_and_fetch_8'
__sync_add_and_fetch_8(uint64_t *ptr, uint64_t val)
^

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/mesa/files/0001-meson-misdetects-64bit-atomics-on-mips-clang.patch [new file with mode: 0644]
meta/recipes-graphics/mesa/mesa_19.3.1.bb