Skip to content

Commit d3e4bd9

Browse files
committed
Update build-script-helper.py to Python 3
1 parent 7efd438 commit d3e4bd9

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Utilities/build-script-helper.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#!/usr/bin/env python
2-
3-
from __future__ import print_function
1+
#!/usr/bin/env python3
42

53
import argparse
64
import os
@@ -93,7 +91,7 @@ def add_common_args(parser):
9391
parser.add_argument('--sanitize-all', action='store_true', help='build using every available sanitizer in sub-directories of build path')
9492
parser.add_argument('--verbose', '-v', action='store_true', help='enable verbose output')
9593

96-
subparsers = parser.add_subparsers(title='subcommands', dest='action', metavar='action')
94+
subparsers = parser.add_subparsers(title='subcommands', dest='action', required=True, metavar='action')
9795
build_parser = subparsers.add_parser('build', help='build the package')
9896
add_common_args(build_parser)
9997

Utilities/import-llvm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# This is a helper script for importing the things we use from LLVM.
44
#

0 commit comments

Comments
 (0)