File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -930,6 +930,19 @@ else()
930
930
find_package (LibEdit )
931
931
endif ()
932
932
933
+ if (LibEdit_FOUND )
934
+ cmake_push_check_state ()
935
+ list (APPEND CMAKE_REQUIRED_INCLUDES ${LibEdit_INCLUDE_DIRS} )
936
+ list (APPEND CMAKE_REQUIRED_LIBRARIES ${LibEdit_LIBRARIES} )
937
+ check_symbol_exists (el_wgets "histedit.h" HAVE_EL_WGETS )
938
+ if (HAVE_EL_WGETS )
939
+ set (LibEdit_HAS_UNICODE YES )
940
+ else ()
941
+ set (LibEdit_HAS_UNICODE NO )
942
+ endif ()
943
+ cmake_pop_check_state ()
944
+ endif ()
945
+
933
946
check_symbol_exists (wait4 "sys/wait.h" HAVE_WAIT4 )
934
947
935
948
check_symbol_exists (proc_pid_rusage "libproc.h" HAVE_PROC_PID_RUSAGE )
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ target_link_libraries(swiftImmediate PRIVATE
12
12
swiftIRGen
13
13
swiftSILGen
14
14
swiftSILOptimizer )
15
- if (LibEdit_FOUND )
15
+ if (LibEdit_FOUND AND LibEdit_HAS_UNICODE )
16
16
target_compile_definitions (swiftImmediate PRIVATE
17
17
HAVE_LIBEDIT )
18
18
target_link_libraries (swiftImmediate PRIVATE
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ include_directories(
6
6
7
7
add_swift_lib_subdirectory (sourcekitd )
8
8
add_swift_tool_subdirectory (sourcekitd-test )
9
- if (LibEdit_FOUND )
9
+ if (LibEdit_FOUND AND LibEdit_HAS_UNICODE )
10
10
add_swift_tool_subdirectory (sourcekitd-repl )
11
11
endif ()
12
12
add_swift_tool_subdirectory (complete-test )
You can’t perform that action at this time.
0 commit comments