diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-03-22 22:45:46 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2017-03-22 22:45:46 -0700 |
commit | b5704754fe4a398c4bfdd5875e1a5674c1a5935e (patch) | |
tree | d6de7ac162b404c37b4b04ca4bc5becab5c129bc | |
parent | b87a17ed72e37bf12410af65b52241d56d037ef0 (diff) | |
download | meta-clang-b5704754fe4a398c4bfdd5875e1a5674c1a5935e.tar.gz |
lldb: Fix build with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | recipes-devtools/clang/lldb/0001-Include-limits.h-for-PATH_MAX-definition.patch | 27 | ||||
-rw-r--r-- | recipes-devtools/clang/lldb_git.bb | 4 |
2 files changed, 31 insertions, 0 deletions
diff --git a/recipes-devtools/clang/lldb/0001-Include-limits.h-for-PATH_MAX-definition.patch b/recipes-devtools/clang/lldb/0001-Include-limits.h-for-PATH_MAX-definition.patch new file mode 100644 index 0000000..d0a0800 --- /dev/null +++ b/recipes-devtools/clang/lldb/0001-Include-limits.h-for-PATH_MAX-definition.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From 87a102f4a9a9143b589971a43e93e3b5f8638321 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 22 Mar 2017 22:25:18 -0700 | ||
4 | Subject: [PATCH] Include limits.h for PATH_MAX definition | ||
5 | |||
6 | Helps compiling on musl targets | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | source/Host/common/FileSpec.cpp | 1 + | ||
11 | 1 file changed, 1 insertion(+) | ||
12 | |||
13 | diff --git a/source/Host/common/FileSpec.cpp b/source/Host/common/FileSpec.cpp | ||
14 | index 7f46d303a..2be162d63 100644 | ||
15 | --- a/source/Host/common/FileSpec.cpp | ||
16 | +++ b/source/Host/common/FileSpec.cpp | ||
17 | @@ -19,6 +19,7 @@ | ||
18 | #include <fstream> | ||
19 | #include <set> | ||
20 | #include <string.h> | ||
21 | +#include <limits.h> | ||
22 | |||
23 | #include "lldb/Host/Config.h" // Have to include this before we test the define... | ||
24 | #ifdef LLDB_CONFIG_TILDE_RESOLVES_TO_USER | ||
25 | -- | ||
26 | 2.12.1 | ||
27 | |||
diff --git a/recipes-devtools/clang/lldb_git.bb b/recipes-devtools/clang/lldb_git.bb index f399a95..6717124 100644 --- a/recipes-devtools/clang/lldb_git.bb +++ b/recipes-devtools/clang/lldb_git.bb | |||
@@ -40,6 +40,10 @@ SRC_URI += "\ | |||
40 | file://0004-clang-Prepend-trailing-to-sysroot.patch;patchdir=tools/clang \ | 40 | file://0004-clang-Prepend-trailing-to-sysroot.patch;patchdir=tools/clang \ |
41 | file://0005-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch;patchdir=tools/clang \ | 41 | file://0005-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch;patchdir=tools/clang \ |
42 | " | 42 | " |
43 | # lldb patches | ||
44 | SRC_URI += "\ | ||
45 | file://0001-Include-limits.h-for-PATH_MAX-definition.patch;patchdir=tools/lldb \ | ||
46 | " | ||
43 | SRCREV_FORMAT = "llvm_clang_lldb" | 47 | SRCREV_FORMAT = "llvm_clang_lldb" |
44 | 48 | ||
45 | S = "${WORKDIR}/git" | 49 | S = "${WORKDIR}/git" |