anchor.diff:                 -DLLVM_ENABLE_PIC=ON \
                  -DLLVM_TABLEGEN=${STAGING_BINDIR_NATIVE}/llvm-tblgen \
                  -DCLANG_TABLEGEN=${STAGING_BINDIR_NATIVE}/clang-tblgen \
  -               -DLLVM_TARGETS_TO_BUILD=${@get_clang_target_arch(bb, d)} \
  +               -DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS_TO_BUILD}" \
                  -DLLVM_TARGET_ARCH=${@get_clang_target_arch(bb, d)} \
                  -DLLVM_DEFAULT_TARGET_TRIPLE=${TARGET_SYS} \
   "
  
positive.code: "
  
  EXTRA_OECMAKE_append_class-native = "\
                 -DLLVM_TARGETS_TO_BUILD='AArch64;ARM;Mips;PowerPC;X86' \
  "
  EXTRA_OECMAKE_append_class-nativesdk = "\
                 -DLLVM_TARGETS_TO_BUILD='AArch64;ARM;Mips;PowerPC;X86' \
                 -DLLVM_TABLEGEN=${STAGING_BINDIR_NATIVE}/llvm-tblgen \
                 -DCLANG_TABLEGEN=${STAGING_BINDIR_NATIVE}/clang-tblgen \
  "
  
negative.code: 
  OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH"
  
  def get_clang_arch(bb, d, arch_var):
      target_arch = d.getVar(arch_var, True)
      clang_arches = {
          "i586"     : "X86",
          "x86_64"   : "X86",
          "powerpc"  : "PowerPC",
          "mips"     : "Mips",
          "arm"      : "ARM",
  