diff options
author | Zachary Turner <zturner@google.com> | 2017-09-16 00:25:58 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-09-16 00:25:58 +0000 |
commit | 6368f9154b9c62512ad3e6fdf0376e0324d46b32 (patch) | |
tree | c37fbf9b9204d12b84e7778f5ba9804b773baaab /cmake/modules | |
parent | 4cd1955e6599f8c33c69aeaa35278b2bd71cd972 (diff) | |
download | llvm-6368f9154b9c62512ad3e6fdf0376e0324d46b32.tar.gz |
Resubmit "[lit] Add a lit.llvm module that all llvm projects can use"
This was reverted alongside the revert of the lit/llvm-lit refactor,
but now that that has re-landed, I'm relanding this as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313426 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules')
-rw-r--r-- | cmake/modules/AddLLVM.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index 54807dc81c4..6e0aacec4a3 100644 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -1173,6 +1173,10 @@ function(configure_lit_site_cfg input output) set(TARGET_TRIPLE "\"+config.target_triple+\"") endif() + string(CONCAT LIT_SITE_CFG_IN_FOOTER + "import lit.llvm\n" + "lit.llvm.initialize(lit_config, config)\n") + configure_file(${input} ${output} @ONLY) get_filename_component(INPUT_DIR ${input} DIRECTORY) if (EXISTS "${INPUT_DIR}/lit.cfg") |