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>2021-01-28 11:35:50 -0800
committerKhem Raj <raj.khem@gmail.com>2021-03-01 11:12:14 -0800
commit596e0e7c195378a1b02e6ebcad0fb98054230e28 (patch)
treea1ac857fee80a85b588a9b9653e4a9a54e4e79c8 /recipes-devtools/clang/clang/0007-llvm-allow-env-override-of-exe-path.patch
parent6611405d0e50724afe4b6ee1d6e80417a31721d6 (diff)
downloadmeta-clang-596e0e7c195378a1b02e6ebcad0fb98054230e28.tar.gz
clang: Update to 12.0.0 RC2
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, 4 insertions, 7 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 39e6166..d8af3ff 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 fdc01a13dddebef34e5cc037484dd368b9985d63 Mon Sep 17 00:00:00 2001 1From d8875d549490e392fe432de259fb13c00b585598 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 07/24] llvm: allow env override of exe path 4Subject: [PATCH] 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 7e74b7c9081..8aa541aae38 100644 18index 1a2f04552d13..019d8f2b5c5e 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@@ -248,6 +248,13 @@ Typical components:\n\ 21@@ -247,6 +247,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,6 +32,3 @@ index 7e74b7c9081..8aa541aae38 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