diff options
Diffstat (limited to 'test/profile/Linux/lit.local.cfg')
-rw-r--r-- | test/profile/Linux/lit.local.cfg | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/profile/Linux/lit.local.cfg b/test/profile/Linux/lit.local.cfg new file mode 100644 index 000000000..f8e19912d --- /dev/null +++ b/test/profile/Linux/lit.local.cfg @@ -0,0 +1,21 @@ +import subprocess + +def getRoot(config): + if not config.parent: + return config + return getRoot(config.parent) + +root = getRoot(config) + +def is_gold_linker_available(): + ld_cmd = subprocess.Popen([config.gold_executable, '--help'], stdout = subprocess.PIPE) + ld_out = ld_cmd.stdout.read().decode() + ld_cmd.wait() + + if not '-plugin' in ld_out: + return False + + return True + +if root.host_os not in ['Linux'] or not is_gold_linker_available(): + config.unsupported = True |