You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This allows bazel users to depend on these libraries directly through
the SwiftSyntax repo instead of everyone having to provide their own
duplicate BUILD files. Since swift-syntax is pretty uniform this is
setup using a simple bazel macro that uses the conventions of swiftpm to
setup each library. This also includes a bazel target for always
building a library with optimizations which can be useful if you want
the improved performance and aren't trying to debug swift-syntax itself.
(cherry picked from commit 0a73615)
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,17 @@ Start contributing to SwiftSyntax see [this guide](CONTRIBUTING.md) for more inf
95
95
96
96
If you should hit any issues while using SwiftSyntax, we appreciate bug reports on [GitHub Issue](https://github.com/apple/swift-syntax/issues).
97
97
98
+
## Bazel
99
+
100
+
SwiftSyntax provides an experimental [Bazel](https://bazel.build) build configuration, maintained by Keith Smiley.
101
+
To use it you can pull the source archive from the relevant release tag
102
+
into your `WORKSPACE` and depend on the libraries you need from the
103
+
[`BUILD.bazel`](BUILD.bazel) file. Each library also has an associated
104
+
`Library_opt` target (such as `SwiftSyntax_opt`) which forces
105
+
SwiftSyntax to always build with optimizations enabled. This may help
106
+
local runtime performance at the cost of debuggability, and initial
107
+
build time. Please tag any [issues](https://github.com/apple/swift-syntax/issues) related to the Bazel configuration with the label "Bazel".
108
+
98
109
## License
99
110
100
111
Please see [LICENSE](LICENSE.txt) for more information.
0 commit comments