[Lldb-commits] [lldb] e8af4fd - [lldb/CMake] Initialize LLDB_ENABLE_POSIX based on the UNIX variable.
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Fri Dec 13 13:47:38 PST 2019
Author: Jonas Devlieghere
Date: 2019-12-13T13:46:43-08:00
New Revision: e8af4fd42da3580f9bda5202f381bf92d07f4b9c
URL: https://github.com/llvm/llvm-project/commit/e8af4fd42da3580f9bda5202f381bf92d07f4b9c
DIFF: https://github.com/llvm/llvm-project/commit/e8af4fd42da3580f9bda5202f381bf92d07f4b9c.diff
LOG: [lldb/CMake] Initialize LLDB_ENABLE_POSIX based on the UNIX variable.
Added:
Modified:
lldb/cmake/modules/LLDBGenerateConfig.cmake
Removed:
################################################################################
diff --git a/lldb/cmake/modules/LLDBGenerateConfig.cmake b/lldb/cmake/modules/LLDBGenerateConfig.cmake
index bee17b509247..0d3a7fdb1816 100644
--- a/lldb/cmake/modules/LLDBGenerateConfig.cmake
+++ b/lldb/cmake/modules/LLDBGenerateConfig.cmake
@@ -24,7 +24,11 @@ check_library_exists(compression compression_encode_buffer "" HAVE_LIBCOMPRESSIO
# so that the check isn't duplicated, but we translate them into the LLDB names
# so that I don't have to change all the uses at the moment.
set(LLDB_ENABLE_TERMIOS ${HAVE_TERMIOS_H})
-set(LLDB_ENABLE_POSIX NOT UNIX)
+if (UNIX)
+ set(LLDB_ENABLE_POSIX ON)
+else()
+ set(LLDB_ENABLE_POSIX OFF)
+endif()
if(NOT LLDB_CONFIG_HEADER_INPUT)
set(LLDB_CONFIG_HEADER_INPUT ${LLDB_INCLUDE_ROOT}/lldb/Host/Config.h.cmake)
More information about the lldb-commits
mailing list