mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
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
This commit is contained in:
parent
d7d71a1859
commit
46d061c0fb
@ -30,14 +30,6 @@ if 'TEMP' in os.environ:
|
|||||||
|
|
||||||
###
|
###
|
||||||
|
|
||||||
# If necessary, point the dynamic loader at libLLVM.so.
|
|
||||||
if config.enable_shared:
|
|
||||||
shlibpath = config.environment.get(config.shlibpath_var,'')
|
|
||||||
if shlibpath:
|
|
||||||
shlibpath = os.pathsep + shlibpath
|
|
||||||
shlibpath = config.shlibdir + shlibpath
|
|
||||||
config.environment[config.shlibpath_var] = shlibpath
|
|
||||||
|
|
||||||
# Check that the object root is known.
|
# Check that the object root is known.
|
||||||
if config.test_exec_root is None:
|
if config.test_exec_root is None:
|
||||||
# Otherwise, we haven't loaded the site specific configuration (the user is
|
# Otherwise, we haven't loaded the site specific configuration (the user is
|
||||||
@ -81,3 +73,11 @@ if config.test_exec_root is None:
|
|||||||
lit.note('using out-of-tree build at %r' % llvm_obj_root)
|
lit.note('using out-of-tree build at %r' % llvm_obj_root)
|
||||||
lit.load_config(config, site_cfg)
|
lit.load_config(config, site_cfg)
|
||||||
raise SystemExit
|
raise SystemExit
|
||||||
|
|
||||||
|
# If necessary, point the dynamic loader at libLLVM.so.
|
||||||
|
if config.enable_shared:
|
||||||
|
shlibpath = config.environment.get(config.shlibpath_var,'')
|
||||||
|
if shlibpath:
|
||||||
|
shlibpath = os.pathsep + shlibpath
|
||||||
|
shlibpath = config.shlibdir + shlibpath
|
||||||
|
config.environment[config.shlibpath_var] = shlibpath
|
||||||
|
Loading…
Reference in New Issue
Block a user