0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-01 09:24:20 -04:00
denoland-deno/tools/write_gn_args.py
Yoshiya Hinosawa a7bb8ccce8 Add Deno.version.gnArgs (#1845)
To display specific build args passed to GN.
2019-03-01 19:33:28 -05:00

16 lines
414 B
Python

# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import os
import sys
import third_party
from util import run_output, build_path
out_filename = sys.argv[1]
args_list = run_output([
third_party.gn_path, "args",
build_path(), "--list", "--short", "--overrides-only"
],
env=third_party.google_env())
with open(out_filename, "w") as f:
f.write(args_list)