radv: Build code which depends on LLVM only when enabled

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11319>
This commit is contained in:
Tony Wasserka
2021-06-29 12:56:37 +02:00
parent d0ec3582af
commit d5ac15c0e4
+8 -3
View File
@@ -50,8 +50,6 @@ libradv_files = files(
'radv_descriptor_set.h',
'radv_formats.c',
'radv_image.c',
'radv_llvm_helper.cpp',
'radv_llvm_helper.h',
'radv_meta.c',
'radv_meta.h',
'radv_meta_blit.c',
@@ -69,7 +67,6 @@ libradv_files = files(
'radv_meta_resolve_cs.c',
'radv_meta_resolve_fs.c',
'radv_nir_lower_ycbcr_textures.c',
'radv_nir_to_llvm.c',
'radv_pass.c',
'radv_pipeline.c',
'radv_pipeline_cache.c',
@@ -103,6 +100,14 @@ if not with_platform_windows
)
endif
if with_llvm
libradv_files += files(
'radv_llvm_helper.cpp',
'radv_llvm_helper.h',
'radv_nir_to_llvm.c',
)
endif
radv_deps = []
radv_flags = cc.get_supported_arguments(['-Wimplicit-fallthrough', '-Wshadow'])