Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(888)

Side by Side Diff: build/config/mac/xcrun.py

Issue 1915863003: [Mac/GN] Build content_shell and content_shell_framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-info-plist
Patch Set: xcrun stamp Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import argparse
6 import os
7 import subprocess
8 import sys
9
10 if __name__ == '__main__':
11 parser = argparse.ArgumentParser(
12 description='A script to execute a command via xcrun.')
13 parser.add_argument('--stamp', action='store', type=str,
14 help='Write a stamp file to this path on success.')
15 args, unknown_args = parser.parse_known_args()
16
17 rv = subprocess.check_call(['xcrun'] + unknown_args)
18 if rv == 0 and args.stamp:
19 if os.path.exists(args.stamp):
20 os.unlink(args.stamp)
21 open(args.stamp, 'w+').close()
22
23 sys.exit(rv)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698