summaryrefslogtreecommitdiff
path: root/tools/build.py
blob: 978b70a36d5199833f6ced54ed76f3038772c17d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
import os
import sys
from os.path import join
import third_party
from util import root_path, run, run_output, build_path

third_party.fix_symlinks()

print "DENO_BUILD_PATH:", build_path()
if not os.path.isdir(build_path()):
    print "DENO_BUILD_PATH does not exist. Run tools/setup.py"
    sys.exit(1)
os.chdir(build_path())

ninja_args = sys.argv[1:]

run([third_party.ninja_path] + ninja_args,
    env=third_party.google_env(),
    quiet=True)