[llvm-commits] [hlvm] r38103 - /hlvm/trunk/build/hlvm.py
Reid Spencer
reid at x10sys.com
Sat Jul 7 16:59:51 PDT 2007
Author: reid
Date: Sat Jul 7 18:59:50 2007
New Revision: 38103
URL: http://llvm.org/viewvc/llvm-project?rev=38103&view=rev
Log:
When libraries register for installation, autoadd their LIBPATH entry at that
point. This will auto-maintain the list without having to manually edit the
build scripts.
Modified:
hlvm/trunk/build/hlvm.py
Modified: hlvm/trunk/build/hlvm.py
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/build/hlvm.py?rev=38103&r1=38102&r2=38103&view=diff
==============================================================================
--- hlvm/trunk/build/hlvm.py (original)
+++ hlvm/trunk/build/hlvm.py Sat Jul 7 18:59:50 2007
@@ -44,6 +44,7 @@
return 1
def InstallLibrary(env,lib):
+ env.AppendUnique(LIBPATH=env.Dir('.'))
if 'install' in COMMAND_LINE_TARGETS:
libdir = pjoin(env['prefix'],'lib')
env.Install(dir,lib)
@@ -140,14 +141,9 @@
env['BuildDir'] = BuildDir
env['AbsObjRoot'] = env.Dir(BuildDir).abspath
env['AbsSrcRoot'] = env.Dir('#').abspath
- env['LIBPATH'] = [
- pjoin('#',BuildDir,'hlvm/Base'),
- pjoin('#',BuildDir,'hlvm/AST'),
- pjoin('#',BuildDir,'hlvm/Reader/XML'),
- pjoin('#',BuildDir,'hlvm/Writer/XML')
- ];
env.Prepend(CPPPATH=[pjoin('#',BuildDir)])
env.Prepend(CPPPATH=['#'])
+ env['LIBPATH'] = []
env.BuildDir(pjoin(BuildDir,'hlvm'),'hlvm',duplicate=0)
env.BuildDir(pjoin(BuildDir,'tools'),'tools',duplicate=0)
env.BuildDir(pjoin(BuildDir,'test'),'test',duplicate=0)
More information about the llvm-commits
mailing list