anchor.diff:  require clang.inc
   
   PV .= "+git${SRCPV}"
  +
  +#
  +# Default to building only required targets (user overridable).
  +#
  +LLVM_TARGETS_TO_BUILD ?= "${@get_clang_host_arch(bb, d)};${@get_clang_target_arch(bb, d)}"
   
   LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=${LLVMMD5SUM}; \
                       file://tools/clang/LICENSE.TXT;md5=${CLANGMD5SUM}; \
  
positive.code: 
  OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH"
  
  def get_clang_target_arch(bb, d):
      target_arch = d.getVar('TRANSLATED_TARGET_ARCH', True)
      clang_arches = {
          "i586"     : "X86",
          "x86-64"   : "X86",
          "powerpc"  : "PowerPC",
          "mips"     : "Mips",
          "arm"      : "ARM",
  
negative.code:                -DLLVM_ENABLE_PIC=ON \
                 -DLLVM_TABLEGEN=${STAGING_BINDIR_NATIVE}/llvm-tblgen \
                 -DCLANG_TABLEGEN=${STAGING_BINDIR_NATIVE}/clang-tblgen \
                 -DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS_TO_BUILD}" \
                 -DLLVM_TARGET_ARCH=${@get_clang_target_arch(bb, d)} \
                 -DLLVM_DEFAULT_TARGET_TRIPLE=${TARGET_SYS} \
  "
  