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:
whesse@google.com 2014-05-15 14:09:02 +00:00
parent e40d892c36
commit 9ff9b994bc

View file

@ -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)