OSDN Git Service

[cmake] Add custom command to touch archives on Darwin so ninja won't rebuild them.
authorDon Hinton <hintonda@gmail.com>
Tue, 21 May 2019 17:56:45 +0000 (17:56 +0000)
committerDon Hinton <hintonda@gmail.com>
Tue, 21 May 2019 17:56:45 +0000 (17:56 +0000)
commit93051efe9b380a8d3ed60f412dfd6e2ca7532e6b
tree24ed9dbcf957f01e0f1fd33ee02590713bd5e9e7
parentaf8a5d74d66383afe043a42c44771a79a6622264
[cmake] Add custom command to touch archives on Darwin so ninja won't rebuild them.

Summary:
clang and newer versions of ninja use high-resolutions timestamps, but
older versions of libtool on Darwin don't, so the archive will often
get an older timestamp than the last object that was added or updated.
To fix this, we add a custom command to touch the archive after it's
been built so that ninja won't rebuild it unnecessarily the next time
it's run.

Reviewed By: beanz

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361280 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/config-ix.cmake
cmake/modules/AddLLVM.cmake