diff options
author | Zachary Turner <zturner@google.com> | 2017-09-16 18:46:21 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-09-16 18:46:21 +0000 |
commit | 4af1a22e525f0775e66416e06b034784d81f0b08 (patch) | |
tree | 39bd1711897e2891c3ea802931581dd380d7875e /cmake/modules | |
parent | d0c8c6186c1ccb90938e3d80e7ac55f2bf1aa241 (diff) |
Resubmit "Add a shared llvm.lit module that all test suites can use."
There were some issues surrounding Py2 / Py3 compatibility, but
I've now tested with both Py2 and Py3 and everything seems to
work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313467 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") |