llvm-project/clang/tools
Chris Bieneman 3878bc4a33 [CMake] Improve the clang order-file generation workflow
Summary:
This commit re-lands r259862. The underlying cause of the build breakage was an incorrectly written capabilities test. In tools/Driver/CMakeLists.txt I was attempting to check if a linker flag worked, the test was passing it to the compiler, not the linker. CMake doesn't have a linker test, so we have a hand-rolled one.

Original Patch Review: http://reviews.llvm.org/D16896

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.

Reviewers: bogner

Subscribers: cfe-commits

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

llvm-svn: 260742
2016-02-12 21:36:55 +00:00
..
arcmt-test Remove autoconf support 2016-01-26 21:30:40 +00:00
c-arcmt-test Remove autoconf support 2016-01-26 21:30:40 +00:00
c-index-test Remove autoconf support 2016-01-26 21:30:40 +00:00
clang-check Remove autoconf support 2016-01-26 21:30:40 +00:00
clang-format Remove autoconf support 2016-01-26 21:30:40 +00:00
clang-format-vs clang-format sort include use the source file name to determine the 2016-02-10 12:42:58 +00:00
clang-fuzzer [libFuzzer] make LLVMFuzzerTestOneInput (the fuzzer target function) return int instead of void. (following llvm r249214) 2015-10-02 23:34:37 +00:00
diag-build Briefly document diag-build.sh 2013-12-28 21:59:11 +00:00
diagtool Remove autoconf support 2016-01-26 21:30:40 +00:00
driver [CMake] Improve the clang order-file generation workflow 2016-02-12 21:36:55 +00:00
libclang [OPENMP] Rename OMPCapturedFieldDecl to OMPCapturedExprDecl, NFC. 2016-02-11 05:35:55 +00:00
scan-build Remove autoconf support 2016-01-26 21:30:40 +00:00
scan-build-py [analyzer] Windows: launch scan-build from an arbitrary location. 2016-02-10 19:46:41 +00:00
scan-view Remove autoconf support 2016-01-26 21:30:40 +00:00
CMakeLists.txt Install scan-build and scan-view only if Static Analyzer was enabled. 2016-01-13 02:03:50 +00:00