Skip to content
Snippets Groups Projects
Commit 78f2b48e authored by Nico Rieck's avatar Nico Rieck
Browse files

Fix feature detection in lld's lit.cfg

llvm-svn: 202078
parent 41e2f2ba
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
# RUN: not lld -core --add-pass layout -mllvm -debug-only=LayoutPass \ # RUN: not lld -core --add-pass layout -mllvm -debug-only=LayoutPass \
# RUN: %s 2> %t.err # RUN: %s 2> %t.err
# RUN: FileCheck %s -check-prefix=CHECK < %t.err # RUN: FileCheck %s -check-prefix=CHECK < %t.err
# FIXME: This test broke because it was never run, and lld's debug output is
# now missing the kind of the references.
# XFAIL: *
--- ---
defined-atoms: defined-atoms:
......
...@@ -129,9 +129,10 @@ except OSError, why: ...@@ -129,9 +129,10 @@ except OSError, why:
print "Could not find llc in " + llvm_tools_dir print "Could not find llc in " + llvm_tools_dir
exit(42) exit(42)
if re.search(r'DEBUG', llc_cmd.stdout.read()): llc_output = llc_cmd.stdout.read()
if re.search(r'DEBUG', llc_output):
config.available_features.add('debug') config.available_features.add('debug')
if re.search(r'with assertions', llc_cmd.stdout.read()): if re.search(r'with assertions', llc_output):
config.available_features.add('asserts') config.available_features.add('asserts')
llc_cmd.wait() llc_cmd.wait()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment