mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 17:00:09 +01:00
gallium/clover: pass -no-opaque-pointers to Clang
Clang opaque pointers have been enabled by default but the Clover code currently expects them to be disabled. Signed-off-by: Thomas Debesse <dev@illwieckz.net> Reviewed-by: Francisco Jerez <currojerez@riseup.net> Cc: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6342 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16129>
This commit is contained in:
parent
a7f44b6269
commit
06e9607478
1 changed files with 7 additions and 0 deletions
|
|
@ -226,6 +226,13 @@ namespace {
|
|||
// class to recognize it as an OpenCL source file.
|
||||
#if LLVM_VERSION_MAJOR >= 12
|
||||
std::vector<const char *> copts;
|
||||
#if LLVM_VERSION_MAJOR >= 15
|
||||
// Since LLVM commit 702d5de4 opaque pointers are enabled by default:
|
||||
// https://gitlab.freedesktop.org/mesa/mesa/-/issues/6342
|
||||
// A better implementation may be doable following suggestions from there:
|
||||
// https://github.com/llvm/llvm-project/issues/54970#issuecomment-1102254254
|
||||
copts.push_back("-no-opaque-pointers");
|
||||
#endif
|
||||
for (auto &opt : opts) {
|
||||
if (opt == "-cl-denorms-are-zero")
|
||||
copts.push_back("-fdenormal-fp-math=positive-zero");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue