summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang/clang/0007-llvm-allow-env-override-of-exe-path.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-07-16 17:49:48 -0700
committerKhem Raj <raj.khem@gmail.com>2020-08-21 10:30:52 -0700
commit9eb6f440732b2043dab469f3987c2122695a764c (patch)
tree652c1981ed804f4a61bbf41eb9ad35a4745b8964 /recipes-devtools/clang/clang/0007-llvm-allow-env-override-of-exe-path.patch
parenta25f1d1288649fb0378ec8837ef811d366dc3910 (diff)
downloadmeta-clang-9eb6f440732b2043dab469f3987c2122695a764c.tar.gz
clang: Update to 11.x release branch
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-devtools/clang/clang/0007-llvm-allow-env-override-of-exe-path.patch')
-rw-r--r--recipes-devtools/clang/clang/0007-llvm-allow-env-override-of-exe-path.patch11
1 files changed, 7 insertions, 4 deletions
diff --git a/recipes-devtools/clang/clang/0007-llvm-allow-env-override-of-exe-path.patch b/recipes-devtools/clang/clang/0007-llvm-allow-env-override-of-exe-path.patch
index 804cde9..39e6166 100644
--- a/recipes-devtools/clang/clang/0007-llvm-allow-env-override-of-exe-path.patch
+++ b/recipes-devtools/clang/clang/0007-llvm-allow-env-override-of-exe-path.patch
@@ -1,7 +1,7 @@
1From f9e72bc861144d8f77505ce833fc0c8397520e9b Mon Sep 17 00:00:00 2001 1From fdc01a13dddebef34e5cc037484dd368b9985d63 Mon Sep 17 00:00:00 2001
2From: Martin Kelly <mkelly@xevo.com> 2From: Martin Kelly <mkelly@xevo.com>
3Date: Fri, 19 May 2017 00:22:57 -0700 3Date: Fri, 19 May 2017 00:22:57 -0700
4Subject: [PATCH] llvm: allow env override of exe path 4Subject: [PATCH 07/24] llvm: allow env override of exe path
5 5
6When using a native llvm-config from inside a sysroot, we need llvm-config to 6When using a native llvm-config from inside a sysroot, we need llvm-config to
7return the libraries, include directories, etc. from inside the sysroot rather 7return the libraries, include directories, etc. from inside the sysroot rather
@@ -15,10 +15,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
15 1 file changed, 7 insertions(+) 15 1 file changed, 7 insertions(+)
16 16
17diff --git a/llvm/tools/llvm-config/llvm-config.cpp b/llvm/tools/llvm-config/llvm-config.cpp 17diff --git a/llvm/tools/llvm-config/llvm-config.cpp b/llvm/tools/llvm-config/llvm-config.cpp
18index 6c31df3e173..f34f3a935ad 100644 18index 7e74b7c9081..8aa541aae38 100644
19--- a/llvm/tools/llvm-config/llvm-config.cpp 19--- a/llvm/tools/llvm-config/llvm-config.cpp
20+++ b/llvm/tools/llvm-config/llvm-config.cpp 20+++ b/llvm/tools/llvm-config/llvm-config.cpp
21@@ -225,6 +225,13 @@ Typical components:\n\ 21@@ -248,6 +248,13 @@ Typical components:\n\
22 22
23 /// Compute the path to the main executable. 23 /// Compute the path to the main executable.
24 std::string GetExecutablePath(const char *Argv0) { 24 std::string GetExecutablePath(const char *Argv0) {
@@ -32,3 +32,6 @@ index 6c31df3e173..f34f3a935ad 100644
32 // This just needs to be some symbol in the binary; C++ doesn't 32 // This just needs to be some symbol in the binary; C++ doesn't
33 // allow taking the address of ::main however. 33 // allow taking the address of ::main however.
34 void *P = (void *)(intptr_t)GetExecutablePath; 34 void *P = (void *)(intptr_t)GetExecutablePath;
35--
362.27.0
37