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: ec2a59cd7a "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>
This commit is contained in:
Qiang Yu 2020-04-24 16:20:25 +08:00 committed by Marge Bot
parent 727a0a53fd
commit 07b0fbea92
2 changed files with 2 additions and 2 deletions

View File

@ -332,7 +332,7 @@ option(
'tools',
type : 'array',
value : [],
choices : ['drm-shim', 'etnaviv', 'freedreno', 'glsl', 'intel', 'intel-ui', 'nir', 'nouveau', 'xvmc', 'lima', 'all'],
choices : ['drm-shim', 'etnaviv', 'freedreno', 'glsl', 'intel', 'intel-ui', 'nir', 'nouveau', 'xvmc', 'lima', 'panfrost', 'all'],
description : 'List of tools to build. (Note: `intel-ui` selects `intel`)',
)
option(

View File

@ -66,5 +66,5 @@ bifrost_compiler = executable(
libpanfrost_encoder,
libpanfrost_midgard, # references disassemble_midgard...
],
build_by_default : true
build_by_default : with_tools.contains('panfrost')
)