Put object file with precompiled model into list of source files instead of LINK_LIBS.
Without this I would randomly get compilation failures which I believe stem from a bad ordering of RegallocEvictModel.o and libtf_xla_runtime.a:
/usr/bin/clang++ ... lib/libtf_xla_runtime.a lib/CodeGen/RegallocEvictModel.o ... ... lib/CodeGen/RegallocEvictModel.o:__compute_module:function _xla_home_matthiasb_dev_llvm_tfbuild_lib_CodeGen_RegallocEvictModel_llvm_RegallocEvictModel: error: undefined reference to '__xla_cpu_runtime_EigenSingleThreadedMatMulF32' ... other similar errors here ...
specifying the object file in the source file list ensures that it will come before any static libraries.