Allow expansion of {{framework_dirs}} in swift tool

The variable was incorrectly not expanded by the swift tool which
cause Swift code depending on non-system framework from building.

Fix the issue by allowing the expansion in the tool definition.

Bug: 493762975
Change-Id: I0cd5c5bb44ebc24a15ba0eac8ee8b4aafca36ddd
Reviewed-on: https://gn-review.googlesource.com/c/gn/+/29340
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@google.com>
diff --git a/src/gn/c_substitution_type.cc b/src/gn/c_substitution_type.cc
index 2c7c8ce..80f7ba5 100644
--- a/src/gn/c_substitution_type.cc
+++ b/src/gn/c_substitution_type.cc
@@ -122,7 +122,8 @@
          type == &CSubstitutionIncludeDirs ||
          type == &CSubstitutionSwiftBridgeHeader ||
          type == &CSubstitutionSwiftModuleDirs ||
-         type == &CSubstitutionSwiftFlags || type == &CSubstitutionDefines;
+         type == &CSubstitutionSwiftFlags ||
+         type == &CSubstitutionFrameworkDirs || type == &CSubstitutionDefines;
 }
 
 bool IsValidSwiftCompilerOutputsSubstitution(const Substitution* type) {