Index: zorg/buildbot/builders/LLDBBuilder.py =================================================================== --- zorg/buildbot/builders/LLDBBuilder.py +++ zorg/buildbot/builders/LLDBBuilder.py @@ -238,6 +238,20 @@ workdir='%s/tools/lldb/test' % llvm_objdir)) return f +# Get library path and add to shell environment +def getLibPath(f, compilerPath, env): + testenv = dict(env) + # Determine the installed library path. + f.addStep(SetProperty(name="get_ccdir", + command="dirname $(readlink $(which " + compilerPath + "))", + property="ccdir", + description="set compiler dir", + workdir=".")) + libdir = "%(ccdir)s/../lib64" + testenv['LD_LIBRARY_PATH'] = WithProperties(libdir) + testenv['CXXFLAGS'] = WithProperties("-L"+libdir) + return testenv + # Add test steps from list of compilers and archs def getLLDBTestSteps(f, bindir, @@ -272,12 +286,13 @@ '-A %s ' % arch, '-C %s ' % compilerPath, '-s lldb-test-traces-%s-%s ' % (compiler, arch), - '-u CXXFLAGS ', '-u CFLAGS ', '--channel ', '"gdb-remote packets" ', '--channel ', '"lldb all"']) + if 'gcc4.9' in compilerPath: + testenv=getLibPath(f, compilerPath, env) testname = "local" if remote_platform is not None: urlStr='connect://%(remote_host)s:%(remote_port)s'