summaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2019-03-02 09:33:28 +0900
committerRyan Dahl <ry@tinyclouds.org>2019-03-01 19:33:28 -0500
commita7bb8ccce85c6e8bd619cce32d34a5d372ef85b7 (patch)
treeb42939351072d2063f4ca0756ac638ed9531880d /BUILD.gn
parent8c310d3d56c6b1bc67ee81d8c5ea9b20abee8088 (diff)
Add Deno.version.gnArgs (#1845)
To display specific build args passed to GN.
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn12
1 files changed, 12 insertions, 0 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 4e7ab41ad..6c2528704 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -221,6 +221,10 @@ bundle("main_bundle") {
deps = [
":deno_runtime_declaration",
":msg_ts",
+ ":write_gn_args",
+ ]
+ data = [
+ "$target_gen_dir/gn_args.txt",
]
}
@@ -260,3 +264,11 @@ snapshot("snapshot_compiler") {
":compiler_bundle",
]
}
+
+action("write_gn_args") {
+ script = "//tools/write_gn_args.py"
+ outputs = [
+ "$target_gen_dir/gn_args.txt",
+ ]
+ args = [ rebase_path(outputs[0], root_build_dir) ]
+}