summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/cfi/cross-dso/lit.local.cfg.py
blob: 245d434faed9936dd705d887dc861dfd22576e06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
def getRoot(config):
  if not config.parent:
    return config
  return getRoot(config.parent)

root = getRoot(config)

if root.host_os not in ['Linux', 'FreeBSD', 'NetBSD']:
  config.unsupported = True

# Android O (API level 26) has support for cross-dso cfi in libdl.so.
if config.android and 'android-26' not in config.available_features:
  config.unsupported = True
OpenPOWER on IntegriCloud