Skip to content

Commit 21b5e8e

Browse files
authored
Merge pull request swiftlang#178 from apple/add-swift-flags
Add flag to support --add-swift-flags at run script
2 parents f91515b + 27d83db commit 21b5e8e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

run

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ def parse_args():
7979
action='store_true')
8080
parser.add_argument('--skip-runner',
8181
action='store_true')
82+
parser.add_argument("--add-swift-flags",
83+
metavar="FLAGS",
84+
help='add flags to each Swift invocation (note: field '
85+
'names from projects.json enclosed in {} will be '
86+
'replaced with their value)',
87+
default='')
8288
return parser.parse_args()
8389

8490

@@ -151,6 +157,9 @@ def execute_runner(workspace, args):
151157
runner_command += get_sandbox_profile_flags()
152158
if args.verbose:
153159
runner_command += ["--verbose"]
160+
161+
if args.add_swift_flags:
162+
runner_command += ['--add-swift-flags=%s' % args.add_swift_flags]
154163
common.check_execute(runner_command, timeout=9999999)
155164

156165

0 commit comments

Comments
 (0)