[ELF] Remove redundant isExported computation
[llvm-project.git] / compiler-rt / test / profile / Posix / lit.local.cfg.py
blob17a67689192d0ebe472197493c2197def68a079c
1 def getRoot(config):
2 if not config.parent:
3 return config
4 return getRoot(config.parent)
7 root = getRoot(config)
9 if root.host_os in ["Windows"]:
10 config.unsupported = True
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.
14 if root.host_os in ["AIX"]:
15 config.substitutions.append(("%shared_linker_xopts", "-Wl,-bE:shr.exp"))
16 else:
17 config.substitutions.append(("%shared_linker_xopts", ""))