]> granicus.if.org Git - clang/commit
[CMake] Improve the clang order-file generation workflow
authorChris Bieneman <beanz@apple.com>
Fri, 5 Feb 2016 01:22:03 +0000 (01:22 +0000)
committerChris Bieneman <beanz@apple.com>
Fri, 5 Feb 2016 01:22:03 +0000 (01:22 +0000)
commit492a6e3e440ff463f057db7bc4ac8fc725f24ec6
tree8d29c5da2acd5b8c07e875b7a9014d2323d89242
parentef787f73ca9173268ee1a84abaf6e70e1c44b40a
[CMake] Improve the clang order-file generation workflow

Summary:
With this change generating clang order files using dtrace uses the following workflow:

cmake <whatever options you want>

ninja generate-order-file

ninja clang

This patch works by setting a default path to the order file (which can be overridden by the user). If the order file doesn't exist during configuration CMake will create an empty one.

CMake then ties up the dependencies between the clang link job and the order file, and generate-order-file overwrites CLANG_ORDER_FILE with the new order file.

Reviewers: bogner

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D16896

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@259862 91177308-0d34-0410-b5e6-96231b3b80d8
CMakeLists.txt
tools/driver/CMakeLists.txt
utils/perf-training/CMakeLists.txt