[all-commits] [llvm/llvm-project] b32e76: [mlgo] fix build rules

Mircea Trofin via All-commits all-commits at lists.llvm.org
Sat Apr 3 12:59:20 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b32e76c6d507361b3cf2f1bed6756cd228588236
      https://github.com/llvm/llvm-project/commit/b32e76c6d507361b3cf2f1bed6756cd228588236
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2021-04-03 (Sat, 03 Apr 2021)

  Changed paths:
    M llvm/CMakeLists.txt
    M llvm/lib/Analysis/CMakeLists.txt

  Log Message:
  -----------
  [mlgo] fix build rules

This was prompted by D95727, which had the side-effect to break the
'release' mode build bot for ML-driven policies. The problem is that now
the pre-compiled object files don't get transitively carried through as
'source' anymore; that being said, the previous way of consuming them
was problematic, because it was only working for static builds; in
dynamic builds, the whole tf_xla_runtime was linked, which is
undesirable.

The alternative is to treat tf_xla_runtime as an archive, which then
leads to the desired effect.

Differential Revision: https://reviews.llvm.org/D99829




More information about the All-commits mailing list