xref: /llvm-project/compiler-rt/test/profile/Posix/lit.local.cfg.py (revision f98ee40f4b5d7474fc67e82824bf6abbaedb7b1c)
18007ff1aSReid Klecknerdef getRoot(config):
28007ff1aSReid Kleckner    if not config.parent:
38007ff1aSReid Kleckner        return config
48007ff1aSReid Kleckner    return getRoot(config.parent)
58007ff1aSReid Kleckner
6*f98ee40fSTobias Hieta
78007ff1aSReid Klecknerroot = getRoot(config)
88007ff1aSReid Kleckner
9*f98ee40fSTobias Hietaif root.host_os in ["Windows"]:
108007ff1aSReid Kleckner    config.unsupported = True
11a09be085SDavid Tenty
12a09be085SDavid Tenty# AIX usually usually makes use of an explicit export list when linking a shared
13492cbbc3SDavid Tenty# object, since the linker doesn't export anything by default.
14*f98ee40fSTobias Hietaif root.host_os in ["AIX"]:
15*f98ee40fSTobias Hieta    config.substitutions.append(("%shared_linker_xopts", "-Wl,-bE:shr.exp"))
16a09be085SDavid Tentyelse:
17*f98ee40fSTobias Hieta    config.substitutions.append(("%shared_linker_xopts", ""))
18