[Perf-Training] Reworked workflow improvements for order-file generation
authorChris Bieneman <beanz@apple.com>
Fri, 8 Apr 2016 22:48:18 +0000 (22:48 +0000)
committerChris Bieneman <beanz@apple.com>
Fri, 8 Apr 2016 22:48:18 +0000 (22:48 +0000)
commit834a40b463af608684d102762e95b335ebedcfbb
tree890a423933df40bd886baa7a5d536bdbff992406
parent79c68d52b1731d0c58888de72eced88729105d02
[Perf-Training] Reworked workflow improvements for order-file generation

This is re-landing r260742. I've reworked the conditionals so that it only hits when targeting Apple platforms with ld64.

Original 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.

llvm-svn: 265864
clang/CMakeLists.txt
clang/tools/driver/CMakeLists.txt
clang/utils/perf-training/CMakeLists.txt