-
-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26099 from dtzWill/fix/lldb-libedit
lldb-4: Patch to fix libedit usage on Linux
- Loading branch information
Showing
2 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
From 94764369222a8e6c65420a6981d7f179a18a5417 Mon Sep 17 00:00:00 2001 | ||
From: Will Dietz <w@wdtz.org> | ||
Date: Thu, 25 May 2017 15:03:42 -0500 | ||
Subject: [PATCH] EditLine.h: libedit supports wide chars on NixOS | ||
|
||
--- | ||
include/lldb/Host/Editline.h | 5 +---- | ||
1 file changed, 1 insertion(+), 4 deletions(-) | ||
|
||
diff --git a/include/lldb/Host/Editline.h b/include/lldb/Host/Editline.h | ||
index faed373bc..b248cdee1 100644 | ||
--- a/include/lldb/Host/Editline.h | ||
+++ b/include/lldb/Host/Editline.h | ||
@@ -43,12 +43,9 @@ | ||
// 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__) | ||
+// (libedit on NixOS is always wide-char capable) | ||
#define LLDB_EDITLINE_USE_WCHAR 1 | ||
#include <codecvt> | ||
-#else | ||
-#define LLDB_EDITLINE_USE_WCHAR 0 | ||
-#endif | ||
|
||
#include "lldb/Host/ConnectionFileDescriptor.h" | ||
#include "lldb/lldb-private.h" | ||
-- | ||
2.13.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters