File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ include (CheckIncludeFileCXX )
1
2
include (CheckCXXSymbolExists )
2
3
include (CheckTypeSize )
3
4
@@ -94,10 +95,14 @@ else()
94
95
find_package (LibEdit REQUIRED )
95
96
96
97
# Check if we libedit capable of handling wide characters (built with
97
- # '--enable-widec').
98
+ # '--enable-widec'), and have the <codecvt> standard library we use to
99
+ # process them.
98
100
set (CMAKE_REQUIRED_LIBRARIES ${libedit_LIBRARIES} )
99
101
set (CMAKE_REQUIRED_INCLUDES ${libedit_INCLUDE_DIRS} )
100
- check_symbol_exists (el_winsertstr histedit.h LLDB_EDITLINE_USE_WCHAR )
102
+ check_symbol_exists (el_winsertstr histedit.h HAVE_WIDEC_LIBEDIT )
103
+ if (HAVE_WIDEC_LIBEDIT )
104
+ check_include_file_cxx (codecvt LLDB_EDITLINE_USE_WCHAR )
105
+ endif ()
101
106
set (CMAKE_EXTRA_INCLUDE_FILES histedit.h )
102
107
check_type_size (el_rfunc_t LLDB_EL_RFUNC_T_SIZE )
103
108
if (LLDB_EL_RFUNC_T_SIZE STREQUAL "" )
You can’t perform that action at this time.
0 commit comments