diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/meson.build | 6 | ||||
-rw-r--r-- | src/meson.build | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/src/amd/meson.build b/src/amd/meson.build index 4a27c8c3e4a..463c78544ab 100644 --- a/src/amd/meson.build +++ b/src/amd/meson.build @@ -22,7 +22,11 @@ inc_amd = include_directories('.') subdir('addrlib') subdir('common') -subdir('llvm') +if with_llvm + subdir('llvm') +else + libamd_common_llvm = [] +endif if with_amd_vk subdir('compiler') subdir('vulkan') diff --git a/src/meson.build b/src/meson.build index d99522cfd2c..5a4d329db0c 100644 --- a/src/meson.build +++ b/src/meson.build @@ -24,11 +24,16 @@ inc_src = include_directories('.') inc_gallium = include_directories('gallium/include') inc_gallium_aux = include_directories('gallium/auxiliary') inc_amd_common = include_directories('amd/common') -inc_amd_common_llvm = include_directories('amd/llvm') inc_tool = include_directories('tool') pps_datasources = [] pps_includes = [] +if with_llvm + inc_amd_common_llvm = include_directories('amd/llvm') +else + inc_amd_common_llvm = [] +endif + libglsl_util = static_library( 'glsl_util', files( |