OSDN Git Service

android: conditionally add LLVM_TARGET(AMDGPU) in device configs
authorMauro Rossi <issor.oruam@gmail.com>
Thu, 10 Nov 2016 22:27:09 +0000 (23:27 +0100)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 6 Jan 2017 02:18:29 +0000 (10:18 +0800)
commit454b00bc3135ed586e0ae6b4b89809daac4d0b64
treeba676537c4289a7224a3b5f35d8052a4535c0639
parent1d51ee93c8f0e2f3fb04d7fb4084b0f4689efaa0
android: conditionally add LLVM_TARGET(AMDGPU) in device configs

Adding LLVM_TARGET(AMDGPU) causes LLVMInitializeAMDPU* prototypes definition,
but this needs to be controlled by defining FORCE_BUILD_AMDGPU,
in order to avoid building errors in clients not having AMDGPU support
like for example md.lc which is broken by LLVM_TARGET(AMDGPU)

Mesa amd/common and gallium radeonsi will require to define FORCE_BUILD_AMDGPU
in Android makefiles in order to materialize LLVMInitializeAMDGPU* prototypes
device/include/llvm/Config/AsmParsers.def
device/include/llvm/Config/AsmPrinters.def
device/include/llvm/Config/Targets.def