summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/llvm
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2019-03-28 15:04:23 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-04-01 14:48:44 +0100
commit259e9a11e1a62b0dc192d9c114f05cd45b02cae1 (patch)
treec30393c38ac0238477edf5208b57c8cb9e9a1678 /meta/recipes-devtools/llvm
parentd587e20be575cc762feb34e60a395ed6fc8039b6 (diff)
downloadpoky-259e9a11e1a62b0dc192d9c114f05cd45b02cae1.tar.gz
llvm: fix more places where '8.0' version of llvm was hardcoded
So that it says '8.0.0' to reflect the recent PV change. (From OE-Core rev: 3b4049157a72bcd984f93405a75946a39c045f2d) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/llvm')
-rw-r--r--meta/recipes-devtools/llvm/llvm/0002-llvm-allow-env-override-of-exe-path.patch18
1 files changed, 9 insertions, 9 deletions
diff --git a/meta/recipes-devtools/llvm/llvm/0002-llvm-allow-env-override-of-exe-path.patch b/meta/recipes-devtools/llvm/llvm/0002-llvm-allow-env-override-of-exe-path.patch
index 2970b0827b..1369bcf78c 100644
--- a/meta/recipes-devtools/llvm/llvm/0002-llvm-allow-env-override-of-exe-path.patch
+++ b/meta/recipes-devtools/llvm/llvm/0002-llvm-allow-env-override-of-exe-path.patch
@@ -51,7 +51,7 @@ index bec89fef98c..91b4d6e4c43 100644
51 ActiveObjRoot = LLVM_OBJ_ROOT; 51 ActiveObjRoot = LLVM_OBJ_ROOT;
52 } else if (sys::fs::equivalent(CurrentExecPrefix, 52 } else if (sys::fs::equivalent(CurrentExecPrefix,
53- Twine(LLVM_OBJ_ROOT) + "/bin")) { 53- Twine(LLVM_OBJ_ROOT) + "/bin")) {
54+ Twine(LLVM_OBJ_ROOT) + "/bin/llvm8.0")) { 54+ Twine(LLVM_OBJ_ROOT) + "/bin/llvm8.0.0")) {
55 IsInDevelopmentTree = true; 55 IsInDevelopmentTree = true;
56 DevelopmentTreeLayout = CMakeBuildModeStyle; 56 DevelopmentTreeLayout = CMakeBuildModeStyle;
57 ActiveObjRoot = LLVM_OBJ_ROOT; 57 ActiveObjRoot = LLVM_OBJ_ROOT;
@@ -63,12 +63,12 @@ index bec89fef98c..91b4d6e4c43 100644
63+ // llvm-config from within a target sysroot. 63+ // llvm-config from within a target sysroot.
64+ std::string Multilibdir = std::getenv("YOCTO_ALTERNATE_MULTILIB_NAME"); 64+ std::string Multilibdir = std::getenv("YOCTO_ALTERNATE_MULTILIB_NAME");
65+ if (Multilibdir.empty()) { 65+ if (Multilibdir.empty()) {
66+ Multilibdir = "/lib/llvm8.0" LLVM_LIBDIR_SUFFIX; 66+ Multilibdir = "/lib/llvm8.0.0" LLVM_LIBDIR_SUFFIX;
67+ } 67+ }
68+ 68+
69 if (IsInDevelopmentTree) { 69 if (IsInDevelopmentTree) {
70- ActiveIncludeDir = std::string(LLVM_SRC_ROOT) + "/include"; 70- ActiveIncludeDir = std::string(LLVM_SRC_ROOT) + "/include";
71+ ActiveIncludeDir = std::string(LLVM_SRC_ROOT) + "/include/llvm8.0"; 71+ ActiveIncludeDir = std::string(LLVM_SRC_ROOT) + "/include/llvm8.0.0";
72 ActivePrefix = CurrentExecPrefix; 72 ActivePrefix = CurrentExecPrefix;
73 73
74 // CMake organizes the products differently than a normal prefix style 74 // CMake organizes the products differently than a normal prefix style
@@ -78,17 +78,17 @@ index bec89fef98c..91b4d6e4c43 100644
78 case CMakeStyle: 78 case CMakeStyle:
79- ActiveBinDir = ActiveObjRoot + "/bin"; 79- ActiveBinDir = ActiveObjRoot + "/bin";
80- ActiveLibDir = ActiveObjRoot + "/lib" + LLVM_LIBDIR_SUFFIX; 80- ActiveLibDir = ActiveObjRoot + "/lib" + LLVM_LIBDIR_SUFFIX;
81+ ActiveBinDir = ActiveObjRoot + "/bin/llvm8.0"; 81+ ActiveBinDir = ActiveObjRoot + "/bin/llvm8.0.0";
82+ ActiveLibDir = ActiveObjRoot + "/lib/llvm8.0" + LLVM_LIBDIR_SUFFIX; 82+ ActiveLibDir = ActiveObjRoot + "/lib/llvm8.0.0" + LLVM_LIBDIR_SUFFIX;
83 ActiveCMakeDir = ActiveLibDir + "/cmake/llvm"; 83 ActiveCMakeDir = ActiveLibDir + "/cmake/llvm";
84 break; 84 break;
85 case CMakeBuildModeStyle: 85 case CMakeBuildModeStyle:
86 ActivePrefix = ActiveObjRoot; 86 ActivePrefix = ActiveObjRoot;
87- ActiveBinDir = ActiveObjRoot + "/bin/" + build_mode; 87- ActiveBinDir = ActiveObjRoot + "/bin/" + build_mode;
88+ ActiveBinDir = ActiveObjRoot + "/bin/llvm8.0/" + build_mode; 88+ ActiveBinDir = ActiveObjRoot + "/bin/llvm8.0.0/" + build_mode;
89 ActiveLibDir = 89 ActiveLibDir =
90- ActiveObjRoot + "/lib" + LLVM_LIBDIR_SUFFIX + "/" + build_mode; 90- ActiveObjRoot + "/lib" + LLVM_LIBDIR_SUFFIX + "/" + build_mode;
91+ ActiveObjRoot + "/lib/llvm8.0" + LLVM_LIBDIR_SUFFIX + "/" + build_mode; 91+ ActiveObjRoot + "/lib/llvm8.0.0" + LLVM_LIBDIR_SUFFIX + "/" + build_mode;
92 ActiveCMakeDir = ActiveLibDir + "/cmake/llvm"; 92 ActiveCMakeDir = ActiveLibDir + "/cmake/llvm";
93 break; 93 break;
94 } 94 }
@@ -96,11 +96,11 @@ index bec89fef98c..91b4d6e4c43 100644
96 // We need to include files from both the source and object trees. 96 // We need to include files from both the source and object trees.
97 ActiveIncludeOption = 97 ActiveIncludeOption =
98- ("-I" + ActiveIncludeDir + " " + "-I" + ActiveObjRoot + "/include"); 98- ("-I" + ActiveIncludeDir + " " + "-I" + ActiveObjRoot + "/include");
99+ ("-I" + ActiveIncludeDir + " " + "-I" + ActiveObjRoot + "/include/llvm8.0"); 99+ ("-I" + ActiveIncludeDir + " " + "-I" + ActiveObjRoot + "/include/llvm8.0.0");
100 } else { 100 } else {
101 ActivePrefix = CurrentExecPrefix; 101 ActivePrefix = CurrentExecPrefix;
102- ActiveIncludeDir = ActivePrefix + "/include"; 102- ActiveIncludeDir = ActivePrefix + "/include";
103+ ActiveIncludeDir = ActivePrefix + "/include/llvm8.0"; 103+ ActiveIncludeDir = ActivePrefix + "/include/llvm8.0.0";
104 SmallString<256> path(StringRef(LLVM_TOOLS_INSTALL_DIR)); 104 SmallString<256> path(StringRef(LLVM_TOOLS_INSTALL_DIR));
105 sys::fs::make_absolute(ActivePrefix, path); 105 sys::fs::make_absolute(ActivePrefix, path);
106 ActiveBinDir = path.str(); 106 ActiveBinDir = path.str();