[all-commits] [llvm/llvm-project] 81b1f4: [CMake] Serialize `build_native_tool`

NAKAMURA Takumi via All-commits all-commits at lists.llvm.org
Sat Apr 29 00:54:29 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 81b1f4746f8ac6d57307f9c9792bf3cc77d909ae
      https://github.com/llvm/llvm-project/commit/81b1f4746f8ac6d57307f9c9792bf3cc77d909ae
  Author: NAKAMURA Takumi <geek4civic at gmail.com>
  Date:   2023-04-29 (Sat, 29 Apr 2023)

  Changed paths:
    M llvm/cmake/modules/CrossCompile.cmake
    M llvm/cmake/modules/TableGen.cmake

  Log Message:
  -----------
  [CMake] Serialize `build_native_tool`

To prevent race in `NATIVE`, let each action depend on preceding action.
At the moment, this is restricted only for "Visual Studio".

For example,

  - `llvm-tblgen-host` depends on the target's `llvm-tblgen`.
  - `clang-tblgen-host` depends on the target's `clang-tblgen` and `llvm-tblgen-host`.

This is rework for D54153.
`build_native_tool` has been introduced since D60024.

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




More information about the All-commits mailing list