aboutsummaryrefslogtreecommitdiffstats
path: root/test/Bindings/Ocaml/lit.local.cfg
blob: 127c3d56305387b3900667b1e6d163581cb33067 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
config.suffixes = ['.ll', '.c', '.cpp', '.ml']

def getRoot(config):
    if not config.parent:
        return config
    return getRoot(config.parent)

root = getRoot(config)

bindings = set([s.strip() for s in root.llvm_bindings.split(',')])
if not 'ocaml' in bindings:
    config.unsupported = True