Skip to content

Commit e8af4fd

Browse files
committed
[lldb/CMake] Initialize LLDB_ENABLE_POSIX based on the UNIX variable.
1 parent 4e26cf2 commit e8af4fd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lldb/cmake/modules/LLDBGenerateConfig.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ check_library_exists(compression compression_encode_buffer "" HAVE_LIBCOMPRESSIO
2424
# so that the check isn't duplicated, but we translate them into the LLDB names
2525
# so that I don't have to change all the uses at the moment.
2626
set(LLDB_ENABLE_TERMIOS ${HAVE_TERMIOS_H})
27-
set(LLDB_ENABLE_POSIX NOT UNIX)
27+
if (UNIX)
28+
set(LLDB_ENABLE_POSIX ON)
29+
else()
30+
set(LLDB_ENABLE_POSIX OFF)
31+
endif()
2832

2933
if(NOT LLDB_CONFIG_HEADER_INPUT)
3034
set(LLDB_CONFIG_HEADER_INPUT ${LLDB_INCLUDE_ROOT}/lldb/Host/Config.h.cmake)

0 commit comments

Comments
 (0)