diff options
author | Roman Divacky <rdivacky@freebsd.org> | 2013-08-27 19:25:01 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@freebsd.org> | 2013-08-27 19:25:01 +0000 |
commit | 6d89ebaf6aa0db6ac64ee73eed4eed469c5bf7b2 (patch) | |
tree | 14f6c1a21f9b7b5cc6a859f544f0e910e99cf8a2 /cmake | |
parent | bd28f5c8562d537031cc50979bc1609cadbfaad2 (diff) | |
download | external_llvm-6d89ebaf6aa0db6ac64ee73eed4eed469c5bf7b2.zip external_llvm-6d89ebaf6aa0db6ac64ee73eed4eed469c5bf7b2.tar.gz external_llvm-6d89ebaf6aa0db6ac64ee73eed4eed469c5bf7b2.tar.bz2 |
Translate ENABLE_CLANG_{ARCMT,REWRITER,STATIC_ANALYZER} when generating
lit.site.cfg.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189394 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/AddLLVM.cmake | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index 472ecef..34e4017 100644 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -296,6 +296,22 @@ function(configure_lit_site_cfg input output) set(HOST_OS ${CMAKE_SYSTEM_NAME}) set(HOST_ARCH ${CMAKE_SYSTEM_PROCESSOR}) + if (CLANG_ENABLE_ARCMT) + set(ENABLE_CLANG_ARCMT "1") + else() + set(ENABLE_CLANG_ARCMT "0") + endif() + if (CLANG_ENABLE_REWRITER) + set(ENABLE_CLANG_REWRITER "1") + else() + set(ENABLE_CLANG_REWRITER "0") + endif() + if (CLANG_ENABLE_STATIC_ANALYZER) + set(ENABLE_CLANG_STATIC_ANALYZER "1") + else() + set(ENABLE_CLANG_STATIC_ANALYZER "0") + endif() + configure_file(${input} ${output} @ONLY) endfunction() |