diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-07-10 21:14:06 -0700 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-07-10 21:34:56 -0700 |
commit | 8ee225744f109b19e7d2412cbc50d4586991d8cf (patch) | |
tree | afd0d07b6f81f55dbd9404cafa5c3763cd9a4bd3 /lldb/packages/Python/lldbsuite/test/configuration.py | |
parent | 849d4405f534434ebbda9889f24ff20122e34671 (diff) | |
download | llvm-8ee225744f109b19e7d2412cbc50d4586991d8cf.zip llvm-8ee225744f109b19e7d2412cbc50d4586991d8cf.tar.gz llvm-8ee225744f109b19e7d2412cbc50d4586991d8cf.tar.bz2 |
[lldb/Test] Fix missing yaml2obj in Xcode standalone build.
Rather than trying to find the yaml2obj from dotest we should pass it in
like we do for dsymutil and FileCheck.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/configuration.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/configuration.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/configuration.py b/lldb/packages/Python/lldbsuite/test/configuration.py index f051522..ca27864 100644 --- a/lldb/packages/Python/lldbsuite/test/configuration.py +++ b/lldb/packages/Python/lldbsuite/test/configuration.py @@ -57,6 +57,9 @@ settings = [('target.prefer-dynamic-value', 'no-dynamic-values')] # Path to the FileCheck testing tool. Not optional. filecheck = None +# Path to the yaml2obj tool. Not optional. +yaml2obj = None + # The arch might dictate some specific CFLAGS to be passed to the toolchain to build # the inferior programs. The global variable cflags_extras provides a hook to do # just that. @@ -163,6 +166,13 @@ def get_filecheck_path(): if filecheck and os.path.lexists(filecheck): return filecheck +def get_yaml2obj_path(): + """ + Get the path to the yaml2obj tool. + """ + if yaml2obj and os.path.lexists(yaml2obj): + return yaml2obj + def is_reproducer_replay(): """ Returns true when dotest is being replayed from a reproducer. Never use |