llvm.org GIT mirror llvm / 46d061c
test/Unit: Fix enable shared test to follow check that we have actually loaded the site config. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133641 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 8 years ago
1 changed file(s) with 8 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
2828 config.environment['TEMP'] = os.environ['TEMP']
2929
3030 ###
31
32 # If necessary, point the dynamic loader at libLLVM.so.
33 if config.enable_shared:
34 shlibpath = config.environment.get(config.shlibpath_var,'')
35 if shlibpath:
36 shlibpath = os.pathsep + shlibpath
37 shlibpath = config.shlibdir + shlibpath
38 config.environment[config.shlibpath_var] = shlibpath
3931
4032 # Check that the object root is known.
4133 if config.test_exec_root is None:
8072 lit.note('using out-of-tree build at %r' % llvm_obj_root)
8173 lit.load_config(config, site_cfg)
8274 raise SystemExit
75
76 # If necessary, point the dynamic loader at libLLVM.so.
77 if config.enable_shared:
78 shlibpath = config.environment.get(config.shlibpath_var,'')
79 if shlibpath:
80 shlibpath = os.pathsep + shlibpath
81 shlibpath = config.shlibdir + shlibpath
82 config.environment[config.shlibpath_var] = shlibpath