[PATCH] D86173: Don't look for terminfo libs when LLVM_ENABLE_TERMINFO=OFF
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 19 10:32:01 PDT 2020
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG495f91fd33d4: [CMake] Don't look for terminfo libs when LLVM_ENABLE_TERMINFO=OFF (authored by phosek).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86173/new/
https://reviews.llvm.org/D86173
Files:
compiler-rt/cmake/config-ix.cmake
llvm/cmake/config-ix.cmake
Index: llvm/cmake/config-ix.cmake
===================================================================
--- llvm/cmake/config-ix.cmake
+++ llvm/cmake/config-ix.cmake
@@ -152,7 +152,9 @@
else()
set(MAYBE_REQUIRED)
endif()
- find_library(TERMINFO_LIB NAMES terminfo tinfo curses ncurses ncursesw ${MAYBE_REQUIRED})
+ if(LLVM_ENABLE_TERMINFO)
+ find_library(TERMINFO_LIB NAMES terminfo tinfo curses ncurses ncursesw ${MAYBE_REQUIRED})
+ endif()
if(TERMINFO_LIB)
set(LLVM_ENABLE_TERMINFO 1)
else()
Index: compiler-rt/cmake/config-ix.cmake
===================================================================
--- compiler-rt/cmake/config-ix.cmake
+++ compiler-rt/cmake/config-ix.cmake
@@ -138,7 +138,9 @@
else()
set(MAYBE_REQUIRED)
endif()
-find_library(COMPILER_RT_TERMINFO_LIB NAMES terminfo tinfo curses ncurses ncursesw ${MAYBE_REQUIRED})
+if(LLVM_ENABLE_TERMINFO)
+ find_library(COMPILER_RT_TERMINFO_LIB NAMES terminfo tinfo curses ncurses ncursesw ${MAYBE_REQUIRED})
+endif()
if(COMPILER_RT_TERMINFO_LIB)
set(LLVM_ENABLE_TERMINFO 1)
else()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86173.286606.patch
Type: text/x-patch
Size: 1097 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200819/e3f0c03a/attachment.bin>
More information about the llvm-commits
mailing list