Go to file
Philip Pfaffe d99c406e3d [Polly][CMake] Use the CMake Package instead of llvm-config in out-of-tree builds
Summary:
As of now, Polly uses llvm-config to set up LLVM dependencies in an out-of-tree build.

This is problematic for two reasons:
1) Right now, in-tree and out-of-tree builds in fact do different things. E.g., in an in-tree build, libPolly depends on a handful of LLVM libraries, while in an out-of-tree build it depends on all of them. This means that we often need to treat both paths seperately.
2) I'm specifically unhappy with the way libPolly is linked right now, because it just blindly links against all the LLVM libs. That doesn't make a lot of sense. For instance, one of these libs is LLVMTableGen, which contains a command line definition of a -o option. This means that I can not link an out-of-tree libPolly into a tool which might want to offer a -o option as well.

This patch (mostly) drop the use of llvm-config  in favor of LLVMs exported cmake package. However, building Polly with unittests requires access to the gtest sources (in the LLVM source tree). If we're building against an LLVM installation, this source tree is unavailable and must specified. I'm using llvm-config to provide a default in this case.

Reviewers: Meinersbur, grosser

Reviewed By: grosser

Subscribers: tstellar, bollu, chapuni, mgorny, pollydev, llvm-commits

Differential Revision: https://reviews.llvm.org/D33299

llvm-svn: 307650
2017-07-11 11:24:25 +00:00
clang [ObjC] Check that a subscript methods is declared for a qualified id type 2017-07-11 10:18:35 +00:00
clang-tools-extra Use new command replace-buffer-contents if available 2017-07-11 09:01:58 +00:00
compiler-rt Do not crash with missing symbolication when running in DEDUP mode 2017-07-10 20:06:06 +00:00
debuginfo-tests Add a test for PR33166. 2017-05-25 19:33:16 +00:00
libclc generic: add missing get_work_dim include 2017-06-02 15:58:35 +00:00
libcxx [libcxx][CMake] Add install path variable to allow overriding the destination 2017-07-11 02:39:50 +00:00
libcxxabi [libcxxabi][CMake] Add install path variable to allow overriding the destination 2017-07-11 01:42:26 +00:00
libunwind [libunwind][CMake] Add install path variable to allow overriding the destination 2017-07-11 01:12:09 +00:00
lld [ELF] Add comment to explain LinkerScript::CurAddressState [NFC] 2017-07-11 09:28:27 +00:00
lldb NativeProcessLinux: Fix handling of raise(SIGTRAP) 2017-07-11 10:38:40 +00:00
llgo irgen: Create functions instead of global variables for builtin hash and equal algorithms. 2017-06-04 22:11:28 +00:00
llvm [PM] Another post-commit fix in NewPMDriver 2017-07-11 11:17:44 +00:00
openmp Add a .arcconfig file for openmp. 2017-07-08 16:09:47 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [Polly][CMake] Use the CMake Package instead of llvm-config in out-of-tree builds 2017-07-11 11:24:25 +00:00