summaryrefslogtreecommitdiffstats
path: root/lldb/test/plugins/builder_darwin.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/plugins/builder_darwin.py')
-rw-r--r--lldb/test/plugins/builder_darwin.py21
1 files changed, 14 insertions, 7 deletions
diff --git a/lldb/test/plugins/builder_darwin.py b/lldb/test/plugins/builder_darwin.py
index 9ddbd18932c..018de8f0318 100644
--- a/lldb/test/plugins/builder_darwin.py
+++ b/lldb/test/plugins/builder_darwin.py
@@ -5,14 +5,21 @@ from builder_base import *
#print "Hello, darwin plugin!"
-def buildDsym(sender=None, architecture=None, compiler=None, dictionary=None):
+def buildDsym(sender=None, architecture=None, compiler=None, dictionary=None, clean=True):
"""Build the binaries with dsym debug info."""
- lldbtest.system(["/bin/sh", "-c",
- "make clean" + getCmdLine(dictionary)
- + "; make MAKE_DSYM=YES"
- + getArchSpec(architecture) + getCCSpec(compiler)
- + getCmdLine(dictionary)],
- sender=sender)
+ if clean:
+ lldbtest.system(["/bin/sh", "-c",
+ "make clean" + getCmdLine(dictionary)
+ + "; make MAKE_DSYM=YES"
+ + getArchSpec(architecture) + getCCSpec(compiler)
+ + getCmdLine(dictionary)],
+ sender=sender)
+ else:
+ lldbtest.system(["/bin/sh", "-c",
+ "make MAKE_DSYM=YES"
+ + getArchSpec(architecture) + getCCSpec(compiler)
+ + getCmdLine(dictionary)],
+ sender=sender)
# True signifies that we can handle building dsym.
return True
OpenPOWER on IntegriCloud