android: ac/common: always build NIR translation
authorMauro Rossi <issor.oruam@gmail.com>
Thu, 3 Aug 2017 00:55:47 +0000 (02:55 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 3 Aug 2017 09:55:27 +0000 (10:55 +0100)
Android build changes to avoid the following building error:

external/mesa/src/gallium/drivers/radeonsi/si_shader_nir.c:505:
error: undefined reference to 'ac_nir_translate'

Fixes: 86d4b46d66 "ac/common: always build NIR translation"
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/amd/Android.common.mk

index 39d2732fd994ab4c38ba1b16006bbc79e1c7c5e4..7d08bfd31d79baa462c2ef91164f35d1d7e58ec3 100644 (file)
@@ -31,7 +31,8 @@ LOCAL_MODULE := libmesa_amd_common
 LOCAL_SRC_FILES := \
        $(AMD_COMMON_FILES) \
        $(AMD_COMPILER_FILES) \
-       $(AMD_DEBUG_FILES)
+       $(AMD_DEBUG_FILES) \
+       $(AMD_NIR_FILES)
 
 LOCAL_CFLAGS += -DFORCE_BUILD_AMDGPU   # instructs LLVM to declare LLVMInitializeAMDGPU* functions