Index: build/get_landmines.py |
diff --git a/build/get_landmines.py b/build/get_landmines.py |
index da676451bf5ecd986c98f2b573df03e7eb46ce0e..ee7f76af8f5017e990159a225bcc9e1fc75415d9 100755 |
--- a/build/get_landmines.py |
+++ b/build/get_landmines.py |
@@ -8,6 +8,7 @@ |
(or a list of 'landmines'). |
""" |
+import optparse |
import sys |
import landmine_utils |
@@ -20,9 +21,10 @@ |
platform = landmine_utils.platform |
-def print_landmines(): |
+def print_landmines(target): |
""" |
ALL LANDMINES ARE EMITTED FROM HERE. |
+ target can be one of {'Release', 'Debug', 'Debug_x64', 'Release_x64'}. |
""" |
if (distributor() == 'goma' and platform() == 'win32' and |
builder() == 'ninja'): |
@@ -59,7 +61,16 @@ |
def main(): |
- print_landmines() |
+ parser = optparse.OptionParser() |
+ parser.add_option('-t', '--target', |
+ help=='Target for which the landmines have to be emitted') |
+ |
+ options, args = parser.parse_args() |
+ |
+ if args: |
+ parser.error('Unknown arguments %s' % args) |
+ |
+ print_landmines(options.target) |
return 0 |