[llvm-commits] [hlvm] r38217 - /hlvm/trunk/build/hlvm.py
Reid Spencer
reid at x10sys.com
Sat Jul 7 17:01:15 PDT 2007
Author: reid
Date: Sat Jul 7 19:01:15 2007
New Revision: 38217
URL: http://llvm.org/viewvc/llvm-project?rev=38217&view=rev
Log:
Make installed tools automatically be a dependency of the "check" targets so
that the tools will get rebuilt if they are out of date before the test suite
is run. Also, add a "strip" option to allow release builds to be stripped of
symbols.
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=38217&r1=38216&r2=38217&view=diff
==============================================================================
--- hlvm/trunk/build/hlvm.py (original)
+++ hlvm/trunk/build/hlvm.py Sat Jul 7 19:01:15 2007
@@ -71,6 +71,8 @@
if 'install' in COMMAND_LINE_TARGETS:
dir = pjoin(env['prefix'],'bin')
env.Install(dir,prog)
+ if 'check' in COMMAND_LINE_TARGETS:
+ env.Depends('check',prog[0].path)
return 1
def InstallLibrary(env,lib):
@@ -114,6 +116,7 @@
BoolOption('optimize','Build object files with optimization',0),
BoolOption('profile','Generate profiling aware code',0),
BoolOption('small','Generate smaller code rather than faster',0),
+ BoolOption('strip','Strip executables of their symbols',0),
)
opts.Add('prefix','Specify where to install HLVM','/usr/local')
opts.Add('confpath','Specify additional configuration dirs to search','')
@@ -207,7 +210,13 @@
else :
VariantName+='o'
- BuildDir = '_' + buildname
+ if env['strip']:
+ VariantName +='T'
+ env['LINKFLAGS'] += ' -s'
+ else:
+ VariantName += 't'
+
+ BuildDir = buildname
env['Variant'] = VariantName
env['BuildDir'] = BuildDir
env['AbsObjRoot'] = env.Dir('#' + BuildDir).abspath
More information about the llvm-commits
mailing list