Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/flang
diff options
context:
space:
mode:
authorCole Kissane <cole.kissane@gmail.com>2022-07-08 21:46:51 +0300
committerCole Kissane <cole.kissane@gmail.com>2022-07-08 21:46:52 +0300
commitf07caf20b9d35e45501c9d5d903fa182b3bdb95a (patch)
tree553553bf06ad80021c84d8f98bf06f24a1dcf001 /flang
parent269d5c16bca15e5f3618ae0b91f907c89eaedf19 (diff)
[llvm] cmake config groundwork to have ZSTD in LLVM
- added `FindZSTD.cmake` - added a CMake option `LLVM_ENABLE_ZSTD` with behavior mirroring that of `LLVM_ENABLE_ZLIB` - likewise added have_zstd to compiler-rt/test/lit.common.cfg.py, clang-tools-extra/clangd/test/lit.cfg.py, and several lit.site.cfg.py.in files mirroring have_zlib behavior Reviewed By: leonardchan, MaskRay Differential Revision: https://reviews.llvm.org/D128465
Diffstat (limited to 'flang')
-rw-r--r--flang/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/flang/CMakeLists.txt b/flang/CMakeLists.txt
index e6ebd26203a1..5c9b4462156e 100644
--- a/flang/CMakeLists.txt
+++ b/flang/CMakeLists.txt
@@ -70,6 +70,12 @@ if (FLANG_STANDALONE_BUILD)
if(LLVM_ENABLE_ZLIB)
find_package(ZLIB REQUIRED)
endif()
+
+ # If LLVM links to zstd we need the imported targets so we can too.
+ if(LLVM_ENABLE_ZSTD)
+ find_package(ZSTD REQUIRED)
+ endif()
+
option(LLVM_ENABLE_PEDANTIC "Compile with pedantic enabled." ON)
if(CMAKE_COMPILER_IS_GNUCXX)
set(USE_NO_MAYBE_UNINITIALIZED 1)