mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 08:07:11 +00:00
Fix only_in_release_mode.py's subcommand paths on Windows.
BUG=dartbug.com/18786 R=kustermann@google.com Review URL: https://codereview.chromium.org//286953004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36222 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
e40d892c36
commit
9ff9b994bc
1 changed files with 1 additions and 0 deletions
|
@ -28,6 +28,7 @@ def Main():
|
|||
separator_index = sys.argv.index('--')
|
||||
outputs = sys.argv[1:separator_index]
|
||||
arguments = sys.argv[separator_index + 1:]
|
||||
arguments[0] = os.path.normpath(arguments[0])
|
||||
mode = os.getenv('DART_BUILD_MODE', default='release')
|
||||
if mode != 'release':
|
||||
print >> sys.stderr, 'Not running %s in mode=%s' % (arguments, mode)
|
||||
|
|
Loading…
Reference in a new issue