panfrost: don't always build bifrost_compiler
authorQiang Yu <yuq825@gmail.com>
Fri, 24 Apr 2020 08:20:25 +0000 (16:20 +0800)
committerMarge Bot <eric+marge@anholt.net>
Sat, 9 May 2020 01:27:41 +0000 (01:27 +0000)
commit07b0fbea92a66499ef7c0f9b748b1034831201b1
tree84afab31ed8906196d3673711cb91475302a8c7d
parent727a0a53fdd4a1cf63a28c53f51d49a4164b2c89
panfrost: don't always build bifrost_compiler

src/panfrost/shared is shared with lima driver, build
bifrost_compiler for lima driver is meaningless and
get link error when only lima driver is enabled.

So only build bifrost_compiler when configued with:
  meson -Dtools=panfrost

Fixes: ec2a59cd7aa4 "panfrost: Move non-Gallium files outside of Gallium"
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4960>
meson_options.txt
src/panfrost/meson.build