Skip to content

util: Disable usage of __attribute__((__const__)) when the compiler is clang

Yonggang Luo requested to merge lygstate/mesa:util_cpu_detect_fix_for_osx into main

Clang didn't implement attribute((const)) properly for release build. The issue tracker is: https://github.com/llvm/llvm-project/issues/56993

Closes #6781 (closed) Closes #6782 (closed)

Signed-off-by: Yonggang Luo luoyonggang@gmail.com Reviewed-by: Jason Ekstrand jason.ekstrand@collabora.com

cc @jekstrand waiting for bot:)

@vlee

Cc: mesa-stable

Edited by Yonggang Luo

Merge request reports

Loading