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>
Thu, 6 Apr 2017 09:36:21 +0000 (17:36 +0800)
commite5e0f8bdb8405754de30ee467ee5feea48b594e6
treeac19423f95d69ce1a3bec3e6ba0c1095d31885c9
parentc9b9e5774ed6e639e0aac1ca1407203dd723db7d
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