[clang-tools-extra] r323040 - Assume the shared library path variable is LD_LIBRARY_PATH on systems

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 12 01:56:30 PST 2018


Merged to 6.0 in r324871.

On Sat, Jan 20, 2018 at 3:34 PM, Dimitry Andric via cfe-commits
<cfe-commits at lists.llvm.org> wrote:
> Author: dim
> Date: Sat Jan 20 06:34:33 2018
> New Revision: 323040
>
> URL: http://llvm.org/viewvc/llvm-project?rev=323040&view=rev
> Log:
> Assume the shared library path variable is LD_LIBRARY_PATH on systems
> except Darwin and Windows.  This prevents inserting an environment
> variable with an empty name (which is illegal and leads to a Python
> exception) on any of the BSDs.
>
> Modified:
>     clang-tools-extra/trunk/test/Unit/lit.cfg
>
> Modified: clang-tools-extra/trunk/test/Unit/lit.cfg
> URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/Unit/lit.cfg?rev=323040&r1=323039&r2=323040&view=diff
> ==============================================================================
> --- clang-tools-extra/trunk/test/Unit/lit.cfg (original)
> +++ clang-tools-extra/trunk/test/Unit/lit.cfg Sat Jan 20 06:34:33 2018
> @@ -19,13 +19,12 @@ config.test_exec_root = config.test_sour
>  # ;-separated list of subdirectories).
>  config.test_format = lit.formats.GoogleTest('.', 'Tests')
>
> -shlibpath_var = ''
> -if platform.system() == 'Linux':
> -    shlibpath_var = 'LD_LIBRARY_PATH'
> -elif platform.system() == 'Darwin':
> +if platform.system() == 'Darwin':
>      shlibpath_var = 'DYLD_LIBRARY_PATH'
>  elif platform.system() == 'Windows':
>      shlibpath_var = 'PATH'
> +else:
> +    shlibpath_var = 'LD_LIBRARY_PATH'
>
>  # Point the dynamic loader at dynamic libraries in 'lib'.
>  shlibpath = os.path.pathsep.join((config.shlibdir, config.llvm_libs_dir,
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


More information about the cfe-commits mailing list