[PATCH] D86333: [compiler-rt][asan][test] Set LD_LIBRARY_PATH_{32, 64} on Solaris
Rainer Orth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 25 00:37:28 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe3585ff7af17: [compiler-rt][asan][test] Set LD_LIBRARY_PATH_{32,64} on Solaris (authored by ro).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86333/new/
https://reviews.llvm.org/D86333
Files:
compiler-rt/test/asan/Unit/lit.site.cfg.py.in
compiler-rt/test/asan/lit.cfg.py
Index: compiler-rt/test/asan/lit.cfg.py
===================================================================
--- compiler-rt/test/asan/lit.cfg.py
+++ compiler-rt/test/asan/lit.cfg.py
@@ -42,6 +42,17 @@
(new_path, config.environment.get(dynamic_library_lookup_var, '')))
config.environment[dynamic_library_lookup_var] = new_ld_32_library_path
+ if platform.system() == 'SunOS':
+ dynamic_library_lookup_var = 'LD_LIBRARY_PATH_32'
+ new_ld_library_path_32 = os.path.pathsep.join(
+ (new_path, config.environment.get(dynamic_library_lookup_var, '')))
+ config.environment[dynamic_library_lookup_var] = new_ld_library_path_32
+
+ dynamic_library_lookup_var = 'LD_LIBRARY_PATH_64'
+ new_ld_library_path_64 = os.path.pathsep.join(
+ (new_path, config.environment.get(dynamic_library_lookup_var, '')))
+ config.environment[dynamic_library_lookup_var] = new_ld_library_path_64
+
# Setup config name.
config.name = 'AddressSanitizer' + config.name_suffix
Index: compiler-rt/test/asan/Unit/lit.site.cfg.py.in
===================================================================
--- compiler-rt/test/asan/Unit/lit.site.cfg.py.in
+++ compiler-rt/test/asan/Unit/lit.site.cfg.py.in
@@ -16,6 +16,15 @@
(new_path, config.environment.get('LD_32_LIBRARY_PATH', '')))
config.environment['LD_32_LIBRARY_PATH'] = new_ld_32_library_path
+ if platform.system() == 'SunOS':
+ new_ld_library_path_32 = os.path.pathsep.join(
+ (new_path, config.environment.get('LD_LIBRARY_PATH_32', '')))
+ config.environment['LD_32_LIBRARY_PATH'] = new_ld_library_path_32
+
+ new_ld_library_path_64 = os.path.pathsep.join(
+ (new_path, config.environment.get('LD_LIBRARY_PATH_64', '')))
+ config.environment['LD_64_LIBRARY_PATH'] = new_ld_library_path_64
+
# Setup config name.
config.name = 'AddressSanitizer-Unit'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86333.287581.patch
Type: text/x-patch
Size: 1861 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200825/df245b6d/attachment.bin>
More information about the llvm-commits
mailing list