Update reference for {rustdeps}
{rustdeps} expands -Clink-arg in addition to -Ldependency since
https://gn-review.googlesource.com/c/gn/+/5941
Bug: 400872290
Change-Id: I4f012941cae063b642050ea9faa8bd5cf0a68de0
Reviewed-on: https://gn-review.googlesource.com/c/gn/+/18340
Commit-Queue: Takuto Ikuta <[email protected]>
Reviewed-by: Petr Hosek <[email protected]>
diff --git a/docs/reference.md b/docs/reference.md
index 4e76a4d..484ec1f 100644
--- a/docs/reference.md
+++ b/docs/reference.md
@@ -3067,23 +3067,18 @@
not_needed(invoker, "*", [ "config" ])
not_needed(invoker, [ "data_deps", "deps" ])
```
-
-### <a name="func_path_exists"></a>**path_exists**: Returns whether the given path exists.
+### <a name="func_path_exists"></a>**path_exists**: Returns whether the given path exists. [Back to Top](#gn-reference)
```
path_exists(path)
-
- The argument is a path to a file or directory.
```
-#### **Example**
-
+#### **Examples**:
```
path_exists("//") # true
path_exists("BUILD.gn") # true
path_exists("/abs-non-existent") # false
```
-
### <a name="func_pool"></a>**pool**: Defines a pool object. [Back to Top](#gn-reference)
```
@@ -4262,8 +4257,8 @@
libraries in this target. Includes any specified renamed dependencies.
{{rustdeps}}
- Expands to the list of -Ldependency=<path> strings needed to compile
- this target.
+ Expands to the list of -Ldependency=<path> and -Clink-arg=<path> strings
+ needed to compile this target.
{{rustenv}}
Expands to the list of environment variables.
diff --git a/src/gn/function_toolchain.cc b/src/gn/function_toolchain.cc
index 1945a6a..794351b 100644
--- a/src/gn/function_toolchain.cc
+++ b/src/gn/function_toolchain.cc
@@ -862,8 +862,8 @@
libraries in this target. Includes any specified renamed dependencies.
{{rustdeps}}
- Expands to the list of -Ldependency=<path> strings needed to compile
- this target.
+ Expands to the list of -Ldependency=<path> and -Clink-arg=<path> strings
+ needed to compile this target.
{{rustenv}}
Expands to the list of environment variables.