diff options
author | Owen Anderson <resistor@mac.com> | 2015-02-04 00:02:59 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2015-02-04 00:02:59 +0000 |
commit | a657cab9eca2728fdfc87aee8255cb17273e35a5 (patch) | |
tree | 51a6efe84e0b6d4646519b9bc276449deb0f0948 /test | |
parent | bf67bfe6bbe485cc90b74674cb3752c171bb3e4c (diff) |
Remove a gross usage of environment variables in MachineVerifier, replacing it with support for setting the -verify-machineinstrs flag via an environment variable in LIT.
This preserves the handy functionality of force-enabling the MachineVerifier, without the need to embed usage of environment variables in LLVM client applications.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228079 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/lit.cfg | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lit.cfg b/test/lit.cfg index cd615b3c573..ec17c294d3a 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -270,6 +270,10 @@ for pattern in [r"\bbugpoint\b(?!-)", # Warn, but still provide a substitution. lit_config.note('Did not find ' + tool_name + ' in ' + llvm_tools_dir) tool_path = llvm_tools_dir + '/' + tool_name + if (tool_name == "llc" and + 'LLVM_ENABLE_MACHINE_VERIFIER' in os.environ and + os.environ['LLVM_ENABLE_MACHINE_VERIFIER'] == "1"): + tool_path += " -verify-machineinstrs" config.substitutions.append((pattern, tool_pipe + tool_path)) ### Targets |