[COMMIT] Add llvm include directory path when we build out of tree.

9 views
Skip to first unread message

ether

unread,
Apr 21, 2011, 10:41:06 PM4/21/11
to polly-...@googlegroups.com

commit c1cc14be8703d3550265e4434477cb6475bd5a23
Author: ether <ethe...@gmail.com>
Date: Fri Apr 22 10:39:31 2011 +0800

Add llvm include directory path when we build out of tree.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 69ac02a..b605bf8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,6 +9,8 @@ if (NOT DEFINED LLVM_MAIN_SRC_DIR)
if( NOT EXISTS ${LLVM_INSTALL_ROOT}/include/llvm )
message(FATAL_ERROR "LLVM_INSTALL_ROOT (${LLVM_INSTALL_ROOT}) is not a valid LLVM installation.")
endif(NOT EXISTS ${LLVM_INSTALL_ROOT}/include/llvm)
+ # Add the llvm header path.
+ include_directories(${LLVM_INSTALL_ROOT}/include/)

# Get the system librarys that will link into LLVM.
function(get_system_libs return_var)

Tobias Grosser

unread,
Apr 22, 2011, 2:21:24 AM4/22/11
to polly-...@googlegroups.com, ether

Hey ether,

I think the LLVM build system installs now also llvm-lit directly. Do
you know if our tests work with an out of tree build?

Tobi

ether zhhb

unread,
Apr 23, 2011, 10:08:11 AM4/23/11
to Tobias Grosser, polly-...@googlegroups.com
hi tobi,

sorry to reply late,

i am going to try this out.

best regards
ether

ether zhhb

unread,
Apr 24, 2011, 6:42:17 AM4/24/11
to Tobias Grosser, polly-...@googlegroups.com
hi tobi,

bad news: llvm do not install filecheck :(
so we can not run test when build out of tree

best regards
ether

Tobias Grosser

unread,
Apr 24, 2011, 7:08:02 AM4/24/11
to ether zhhb, polly-...@googlegroups.com
On 04/24/2011 12:42 PM, ether zhhb wrote:
> hi tobi,
>
> bad news: llvm do not install filecheck :(
> so we can not run test when build out of tree

OK. Maybe we can have as a mid-term goal to contribute patches to
install that stuff. Thanks for investigating.

Cheers
Tobi

Reply all
Reply to author
Forward
0 new messages