lldb: force LLDB_EDITLINE_USE_WCHAR.

Explicitly not revbumped to avoid rebuild.

Fixes #6073.
This commit is contained in:
Leah Neukirchen 2017-05-08 14:55:30 +02:00
parent ecbb28d1eb
commit 25b0fabfa1
2 changed files with 11 additions and 4 deletions

View File

@ -0,0 +1,11 @@
--- lldb/include/lldb/Host/Editline.h.orig
+++ lldb/include/lldb/Host/Editline.h
@@ -43,7 +43,7 @@
// will only be
// used in cases where this is true. This is a compile time dependecy, for now
// selected per target Platform
-#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)
+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__)
#define LLDB_EDITLINE_USE_WCHAR 1
#include <codecvt>
#else

View File

@ -124,10 +124,6 @@ pre_configure() {
esac
configure_args+=" -DLLVM_TARGET_ARCH=${_arch}"
configure_args+=" -DLLVM_DEFAULT_TARGET_TRIPLE=${XBPS_CROSS_TRIPLET:-$XBPS_TRIPLET}"
case "$XBPS_TARGET_MACHINE" in
*-musl) configure_args+=" -DLLDB_DISABLE_LIBEDIT=ON";;
esac
}
post_configure() {
# Don't leak CFLAGS into llvm-config.