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 | 2aa5a92bdb9efa6298f07143ed969166009a09de (patch) | |
| tree | 9286da92079a887be8efbae1e9c59fb0983c170e /llvm/cmake/modules/AddLLVM.cmake | |
| parent | d533d6559a79b1b70c9e80d424b07d14c9047eb6 (diff) | |
| download | bcm5719-llvm-2aa5a92bdb9efa6298f07143ed969166009a09de.tar.gz bcm5719-llvm-2aa5a92bdb9efa6298f07143ed969166009a09de.zip | |
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.
llvm-svn: 313426
Diffstat (limited to 'llvm/cmake/modules/AddLLVM.cmake')
| -rw-r--r-- | llvm/cmake/modules/AddLLVM.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake index 54807dc81c4..6e0aacec4a3 100644 --- a/llvm/cmake/modules/AddLLVM.cmake +++ b/llvm/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") |

