radv: restrict exported symbols with static llvm
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 6 Aug 2020 08:14:07 +0000 (09:14 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 19 Aug 2020 11:19:18 +0000 (11:19 +0000)
commit41bb6459d3a7dba21ff811069dc4757d7789fd12
tree3bad99bace056f08ff3e8bd3593f09ee635c1bbf
parenta457256e2d697d9bae56031a07ae0309d8f59512
radv: restrict exported symbols with static llvm

Like the gallium --version-script magic but for radv.

The long term goal is to make LLVM support optional, remove it even, so
let's keep the hunk in an if block.

v2: fold if checks (Eric)
v3 (Tomeu): Remove spaces within [] (Dylan)

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> (v1)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6203>
src/amd/vulkan/meson.build
src/amd/vulkan/vulkan.sym [new file with mode: 0644]