thirdparty: clean up llvm cmake files too The upgrade to LLVM 3.9 changed the list of targets provided in LLVM's cmake files. If the cmake files are left behind and make it into an LLVM 3.8-based build, the subsequent Kudu build will fail because it can't find all of the targets listed.
It's too late to help with the LLVM 3.9 upgrade, but hopefully it'll ease future upgrades. Change-Id: I98393cf1f8afc2ced78245cad5e2e24ee9410214 Reviewed-on: http://gerrit.cloudera.org:8080/4549 Reviewed-by: Dan Burkert <[email protected]> Tested-by: Kudu Jenkins Project: http://git-wip-us.apache.org/repos/asf/kudu/repo Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/17d1367e Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/17d1367e Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/17d1367e Branch: refs/heads/master Commit: 17d1367e12378a1dbfcc977fd673ad4c374d5f55 Parents: d6c5507 Author: Adar Dembo <[email protected]> Authored: Tue Sep 27 19:20:30 2016 -0700 Committer: Adar Dembo <[email protected]> Committed: Wed Sep 28 22:23:27 2016 +0000 ---------------------------------------------------------------------- thirdparty/build-definitions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kudu/blob/17d1367e/thirdparty/build-definitions.sh ---------------------------------------------------------------------- diff --git a/thirdparty/build-definitions.sh b/thirdparty/build-definitions.sh index 222885c..201ad53 100644 --- a/thirdparty/build-definitions.sh +++ b/thirdparty/build-definitions.sh @@ -80,7 +80,8 @@ build_llvm() { # of the one being built. rm -Rf $PREFIX/include/{llvm*,clang*} \ $PREFIX/lib/lib{LLVM,LTO,clang}* \ - $PREFIX/lib/clang/ + $PREFIX/lib/clang/ \ + $PREFIX/lib/cmake/{llvm,clang} cmake \ -DCMAKE_BUILD_TYPE=Release \
