1import os
2import lldbtest
3
4from builder_base import *
5
6#print "Hello, darwin plugin!"
7
8def buildDsym(sender=None, architecture=None, compiler=None, dictionary=None, clean=True):
9    """Build the binaries with dsym debug info."""
10    if clean:
11        lldbtest.system(["/bin/sh", "-c",
12                         "make clean" + getCmdLine(dictionary)
13                         + "; make MAKE_DSYM=YES"
14                         + getArchSpec(architecture) + getCCSpec(compiler)
15                         + getCmdLine(dictionary)],
16                        sender=sender)
17    else:
18        lldbtest.system(["/bin/sh", "-c",
19                         "make MAKE_DSYM=YES"
20                         + getArchSpec(architecture) + getCCSpec(compiler)
21                         + getCmdLine(dictionary)],
22                        sender=sender)
23
24    # True signifies that we can handle building dsym.
25    return True
26