diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2019-03-02 09:33:28 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-01 19:33:28 -0500 |
commit | a7bb8ccce85c6e8bd619cce32d34a5d372ef85b7 (patch) | |
tree | b42939351072d2063f4ca0756ac638ed9531880d /tools/write_gn_args.py | |
parent | 8c310d3d56c6b1bc67ee81d8c5ea9b20abee8088 (diff) |
Add Deno.version.gnArgs (#1845)
To display specific build args passed to GN.
Diffstat (limited to 'tools/write_gn_args.py')
-rw-r--r-- | tools/write_gn_args.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/write_gn_args.py b/tools/write_gn_args.py new file mode 100644 index 000000000..764dcc6c1 --- /dev/null +++ b/tools/write_gn_args.py @@ -0,0 +1,16 @@ +# 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) |