xref: /llvm-project/compiler-rt/test/profile/Posix/lit.local.cfg.py (revision f98ee40f4b5d7474fc67e82824bf6abbaedb7b1c)
1def getRoot(config):
2    if not config.parent:
3        return config
4    return getRoot(config.parent)
5
6
7root = getRoot(config)
8
9if root.host_os in ["Windows"]:
10    config.unsupported = True
11
12# AIX usually usually makes use of an explicit export list when linking a shared
13# object, since the linker doesn't export anything by default.
14if root.host_os in ["AIX"]:
15    config.substitutions.append(("%shared_linker_xopts", "-Wl,-bE:shr.exp"))
16else:
17    config.substitutions.append(("%shared_linker_xopts", ""))
18