[all-commits] [llvm/llvm-project] 791c5d: [libc] Improve get_object_files_for_test to reduce...

lntue via All-commits all-commits at lists.llvm.org
Mon Dec 18 10:07:18 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 791c5d0eb81e0078571ff6694dd23726b9471048
      https://github.com/llvm/llvm-project/commit/791c5d0eb81e0078571ff6694dd23726b9471048
  Author: lntue <35648136+lntue at users.noreply.github.com>
  Date:   2023-12-18 (Mon, 18 Dec 2023)

  Changed paths:
    M libc/cmake/modules/LLVMLibCTestRules.cmake

  Log Message:
  -----------
  [libc] Improve get_object_files_for_test to reduce CMake configure time for tests. (#75552)

Profiling cmake shows that a significant time configuring `libc` folder
is spent on running `get_object_files_for_test` in the `test` folder (13
sec in `libc/test` folder / 16 sec in `libc` folder). By caching all
needed objects for each target instead of resolving every time, the time
cmake spends on configuring `libc/test` folder is reduced to ~1s.




More information about the All-commits mailing list