Browse files

Fix issue #69, building with a relative path to --with-llvm and a sep…

…arate

build dir, by considering the path as relative to either build or source
directory in setup.py, like we already do in the Makefile.

git-svn-id: http://unladen-swallow.googlecode.com/svn/trunk@766 05521daa-c0b4-11dd-bb00-bd6ab96fe29a
  • Loading branch information...
1 parent d20a345 commit 44a26bf97813558d1c834cc0ca63a93ee711f068 thomaswout committed Jul 21, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 setup.py
View
3 setup.py
@@ -641,7 +641,8 @@ def detect_modules(self):
(rel_llvm_inc_dir,) = sysconfig.get_config_vars('LLVM_INC_DIR')
llvm_inc_dir = os.path.join(srcdir, rel_llvm_inc_dir)
exts.append( Extension('_llvm', ['_llvm.cc'],
- include_dirs=[llvm_inc_dir]) )
+ include_dirs=[rel_llvm_inc_dir,
+ llvm_inc_dir]) )
else:
missing.append('_llvm')

0 comments on commit 44a26bf

Please sign in to comment.