9 lines
454 B
INI
9 lines
454 B
INI
|
# -*- Python -*- vim: set ft=python ts=4 sw=4 expandtab tw=79:
|
||
|
# FIXME: remove this file when we flip the default for --allow-unused-prefixes.
|
||
|
from lit.llvm.subst import ToolSubst
|
||
|
|
||
|
fc = ToolSubst('FileCheck', unresolved='fatal')
|
||
|
# the parent introduced the opposite rule, so we replace it if we see it.
|
||
|
if len(config.substitutions) > 0 and config.substitutions[0] == (fc.regex, 'FileCheck --allow-unused-prefixes=false'):
|
||
|
del config.substitutions[0]
|