dart-sdk/tools/dartc
dgrove@google.com 6b6b28e065 Initial checkin.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 05:34:19 +00:00

20 lines
604 B
Python

#!/usr/bin/env python
#
# Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
import os
import subprocess
import sys
import utils
# Figure out the full path to the real dashc from the cwd.
scriptPath = os.path.dirname(__file__)
buildRoot = utils.GetBuildRoot(utils.GuessOS())
dashcPath = os.path.join(scriptPath, "../compiler", buildRoot,
"Debug/ant-out/dist/bin/dashc")
args = [dashcPath] + sys.argv[1:]
sys.exit(subprocess.call(args))