blob: 018de8f03183e4d1b1842b83eac949c83e97c6b6 [file] [log] [blame]
Peter Collingbourne39bd5362011-06-20 19:06:20 +00001import os
2import lldbtest
3
4from builder_base import *
5
6#print "Hello, darwin plugin!"
7
Johnny Chencbf15912012-02-01 01:49:50 +00008def buildDsym(sender=None, architecture=None, compiler=None, dictionary=None, clean=True):
Peter Collingbourne39bd5362011-06-20 19:06:20 +00009 """Build the binaries with dsym debug info."""
Johnny Chencbf15912012-02-01 01:49:50 +000010 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)
Peter Collingbourne39bd5362011-06-20 19:06:20 +000023
24 # True signifies that we can handle building dsym.
25 return True