[PATCH] D62172: [cmake] Add custom command to touch archives so ninja won't rebuild them.

Don Hinton via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 20 22:15:36 PDT 2019


hintonda added a comment.

In D62172#1509521 <https://reviews.llvm.org/D62172#1509521>, @hintonda wrote:

> In D62172#1509516 <https://reviews.llvm.org/D62172#1509516>, @beanz wrote:
>
> > @thakis Didn't we patch Ninja for this?
>
>
> Here's what I'm running on my Mac:
>
> local:/Users/dhinton/projects/llvm_project/monorepo/llvm-project $ ninja --version
>  1.9.0
>  local:/Users/dhinton/projects/llvm_project/monorepo/llvm-project $ cmake --version
>  cmake version 3.14.0


btw, here's some samples of what I get when I don't touch them:

  local:/Users/dhinton/projects/llvm_project/monorepo/build/Debug $ /usr/local/opt/coreutils/libexec/gnubin/ls --full-time lib/lib*.a
  -rw-r--r--  1 dhinton staff     17232 2019-05-20 18:03:27.000000000 -0700 libDynamicLibraryLib.a
  -rw-r--r--  1 dhinton staff   2822800 2019-05-20 18:01:34.000000000 -0700 libLLVMBinaryFormat.a
  -rw-r--r--  1 dhinton staff 605424256 2019-05-20 18:05:56.000000000 -0700 libLLVMCodeGen.a
  -rw-r--r--  1 dhinton staff 115587352 2019-05-20 18:04:26.000000000 -0700 libLLVMCore.a

and what I get when I do:

  local:/Users/dhinton/projects/llvm_project/monorepo/build/Debug $ /usr/local/opt/coreutils/libexec/gnubin/ls --full-time lib/lib*.a
  -rw-r--r-- 1 dhinton staff     17232 2019-05-20 20:57:50.000000000 -0700 lib/libDynamicLibraryLib.a
  -rw-r--r-- 1 dhinton staff   2822800 2019-05-20 20:57:50.002389000 -0700 lib/libLLVMBinaryFormat.a
  -rw-r--r-- 1 dhinton staff 605424256 2019-05-20 20:58:06.902285000 -0700 lib/libLLVMCodeGen.a
  -rw-r--r-- 1 dhinton staff 115587352 2019-05-20 20:58:04.538669000 -0700 lib/libLLVMCore.a

Note that DynamicLibrary doesn't use llvm_add_library...


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62172/new/

https://reviews.llvm.org/D62172





More information about the llvm-commits mailing list