clc: use CLANG_RESOURCE_DIR for clang's resource path
authorKarol Herbst <git@karolherbst.de>
Tue, 4 Jul 2023 00:15:03 +0000 (02:15 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 14 Aug 2023 10:50:25 +0000 (10:50 +0000)
commite1c278ae825958186418cc8201a6f49f74b75181
tree404388d4598f5107d4e4b5cb969846d1851fe6dc
parent9d7a3f170b03d62720597bca6190954a4f53a854
clc: use CLANG_RESOURCE_DIR for clang's resource path

With certain build configuration that value can be a non empty string and
needs to be used.

This will also require distributions to rebuild mesa if and only if
CLANG_RESOURCE_DIR changes between clang rebuilds or updates.

Signed-off-by: Karol Herbst <git@karolherbst.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23981>
docs/rusticl.rst
src/compiler/clc/clc_helpers.cpp