OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
6 # | 6 # |
7 | 7 |
8 import optparse | 8 import optparse |
9 import shutil | 9 import shutil |
10 import sys | 10 import sys |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 return 1 | 68 return 1 |
69 | 69 |
70 # Delete the output for the targets for each requested configuration. | 70 # Delete the output for the targets for each requested configuration. |
71 for mode in options.mode: | 71 for mode in options.mode: |
72 for arch in options.arch: | 72 for arch in options.arch: |
73 for target_os in options.os: | 73 for target_os in options.os: |
74 build_root = utils.GetBuildRoot( | 74 build_root = utils.GetBuildRoot( |
75 HOST_OS, mode=mode, arch=arch, target_os=target_os) | 75 HOST_OS, mode=mode, arch=arch, target_os=target_os) |
76 print "Deleting %s" % (build_root) | 76 print "Deleting %s" % (build_root) |
77 shutil.rmtree(build_root, ignore_errors=True) | 77 shutil.rmtree(build_root, ignore_errors=True) |
78 # On windows we have additional object files within the runtime library. | |
79 if HOST_OS == 'win32': | |
80 runtime_root = 'runtime/' + build_root | |
81 print "Deleting %s" % (runtime_root) | |
82 shutil.rmtree(runtime_root, ignore_errors=True) | |
83 return 0 | 78 return 0 |
84 | 79 |
85 if __name__ == '__main__': | 80 if __name__ == '__main__': |
86 sys.exit(Main()) | 81 sys.exit(Main()) |
OLD | NEW |