summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-07-06 00:58:09 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-07-06 10:46:30 -0400
commitd30664958ec1031a99373414e17c124b4fa468fa (patch)
tree23efb7d8dbb4208f4d77732e7a91dff7842b97fb /tools
parentbfe08aa4629ee2834ac5c7eaea4db164db1e66ae (diff)
Further gn/rust cleanups
Move rust.gni and deno.gni into build_extra/ Removes rust_library which was only an action. This instead defines rust_component, which is an action plus a gn "component" target to expose the resulting object file. This simplifies link code in rust.gni. Support rust modules that can be linked into C++.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/format.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/format.sh b/tools/format.sh
index f0c7ec0a1..44ca815ff 100755
--- a/tools/format.sh
+++ b/tools/format.sh
@@ -4,8 +4,9 @@ cd `dirname "$0"`/..
clang-format -i -style Google src/*.cc src/*.h
gn format BUILD.gn
-gn format deno.gni
-gn format rust.gni
+gn format build_extra/deno.gni
+gn format build_extra/rust/rust.gni
+gn format build_extra/rust/BUILD.gn
gn format .gn
yapf -i js/*.py