[llvm] r325413 - Remove "--full-shutdown" and instead use an environment variable LLD_IN_TEST.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 16 15:41:48 PST 2018

Author: ruiu
Date: Fri Feb 16 15:41:48 2018
New Revision: 325413

URL: http://llvm.org/viewvc/llvm-project?rev=325413&view=rev
Remove "--full-shutdown" and instead use an environment variable LLD_IN_TEST.

We are running lld tests with "--full-shutdown" option because we don't
want to call _exit() in lld if it is running tests. Regular shutdown
is needed for leak sanitizer.

This patch changes the way how we tell lld that it is running tests.
Now "--full-shutdown" is removed, and LLD_IN_TEST environment variable
is used instead.

This patch enables full shutdown on all ports, e.g. ELF, COFF and wasm.
Previously, we enabled it only for ELF.

Differential Revision: https://reviews.llvm.org/D43410


Modified: llvm/trunk/utils/lit/lit/llvm/config.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/llvm/config.py?rev=325413&r1=325412&r2=325413&view=diff
--- llvm/trunk/utils/lit/lit/llvm/config.py (original)
+++ llvm/trunk/utils/lit/lit/llvm/config.py Fri Feb 16 15:41:48 2018
@@ -465,9 +465,6 @@ class LLVMConfig(object):
         self.with_environment('PATH', tool_dirs, append_path=True)
         self.with_environment('LD_LIBRARY_PATH', lib_dirs, append_path=True)
-        self.config.substitutions.append(
-            (r"\bld.lld\b", 'ld.lld --full-shutdown'))
         tool_patterns = ['lld', 'ld.lld', 'lld-link', 'ld64.lld', 'wasm-ld']
         self.add_tool_substitutions(tool_patterns, tool_dirs)

More information about the llvm-commits mailing list