diff options
author | Todd Fiala <todd.fiala@gmail.com> | 2016-05-26 13:57:03 +0000 |
---|---|---|
committer | Todd Fiala <todd.fiala@gmail.com> | 2016-05-26 13:57:03 +0000 |
commit | 94eb010fe9a6cfe8bf1f03b8ce4cc406d56472ee (patch) | |
tree | 2aea2a6d3dfc5666cbd1632322540c572fa1a5df /lldb/packages/Python/lldbsuite/test/plugins/builder_base.py | |
parent | a8f9cf18ad13b2cb3aa8b05c2d8cf771c0b979b5 (diff) | |
download | bcm5719-llvm-94eb010fe9a6cfe8bf1f03b8ce4cc406d56472ee.tar.gz bcm5719-llvm-94eb010fe9a6cfe8bf1f03b8ce4cc406d56472ee.zip |
Add "-gmodules" support to the test suite.
This change adds the capability of building test inferiors
with the -gmodules flag to enable module debug info support.
Windows is excluded per @zturner.
Reviewers: granata.enrico, aprantl, zturner, labath
Subscribers: zturner, labath, lldb-commits
Differential Revision: http://reviews.llvm.org/D19998
llvm-svn: 270848
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/plugins/builder_base.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/plugins/builder_base.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/plugins/builder_base.py b/lldb/packages/Python/lldbsuite/test/plugins/builder_base.py index 6b8373b453c..a467a458d5d 100644 --- a/lldb/packages/Python/lldbsuite/test/plugins/builder_base.py +++ b/lldb/packages/Python/lldbsuite/test/plugins/builder_base.py @@ -143,6 +143,17 @@ def buildDwo(sender=None, architecture=None, compiler=None, dictionary=None, cle # True signifies that we can handle building dwo. return True +def buildGModules(sender=None, architecture=None, compiler=None, dictionary=None, clean=True): + """Build the binaries with dwarf debug info.""" + commands = [] + if clean: + commands.append([getMake(), "clean", getCmdLine(dictionary)]) + commands.append([getMake(), "MAKE_DSYM=NO", "MAKE_GMODULES=YES", getArchSpec(architecture), getCCSpec(compiler), getCmdLine(dictionary)]) + + lldbtest.system(commands, sender=sender) + # True signifies that we can handle building with gmodules. + return True + def cleanup(sender=None, dictionary=None): """Perform a platform-specific cleanup after the test.""" #import traceback |