Peter Collingbourne | 39bd536 | 2011-06-20 19:06:20 +0000 | [diff] [blame] | 1 | import os |
| 2 | import lldbtest |
| 3 | |
| 4 | from builder_base import * |
| 5 | |
| 6 | #print "Hello, darwin plugin!" |
| 7 | |
Johnny Chen | cbf1591 | 2012-02-01 01:49:50 +0000 | [diff] [blame] | 8 | def buildDsym(sender=None, architecture=None, compiler=None, dictionary=None, clean=True): |
Peter Collingbourne | 39bd536 | 2011-06-20 19:06:20 +0000 | [diff] [blame] | 9 | """Build the binaries with dsym debug info.""" |
Johnny Chen | cbf1591 | 2012-02-01 01:49:50 +0000 | [diff] [blame] | 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) |
Peter Collingbourne | 39bd536 | 2011-06-20 19:06:20 +0000 | [diff] [blame] | 23 | |
| 24 | # True signifies that we can handle building dsym. |
| 25 | return True |