Doc clarification. Change-Id: Ie5cd8c3c168aa5c5da4fc813739952b7eec72a86 Reviewed-on: https://gn-review.googlesource.com/c/gn/+/6180 Reviewed-by: Brett Wilson <brettw@chromium.org> Commit-Queue: Brett Wilson <brettw@chromium.org>
diff --git a/tools/gn/functions.cc b/tools/gn/functions.cc index 47d987c..b08dbd0 100644 --- a/tools/gn/functions.cc +++ b/tools/gn/functions.cc
@@ -410,8 +410,9 @@ the current scope is not (since the overrides haven't been applied yet). 2. At the end of executing the block, any variables set within that scope - are saved globally as build arguments, with their current values being - saved as the "default value" for that argument. + are saved, with the values specified in the block used as the "default value" + for that argument. Once saved, these variables are available for override + via args.gn. 3. User-defined overrides are applied. Anything set in "gn args" now overrides any default values. The resulting set of variables is promoted