File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ repository.
2323
2424## Compatibility
2525
26- These rules have been verified to work with ** Bazel 0.14.1 .**
26+ These rules have been verified to work with ** Bazel 0.16.0 .**
2727
2828## Quick Setup
2929
@@ -51,7 +51,7 @@ rules you wish to depend on:
5151git_repository(
5252 name = " build_bazel_rules_swift" ,
5353 remote = " https://github.com/bazelbuild/rules_swift.git" ,
54- tag = " 0.1.1 " ,
54+ tag = " 0.3.0 " ,
5555)
5656
5757load(
@@ -66,6 +66,17 @@ The `swift_rules_dependencies` macro creates a toolchain appropriate for your
6666platform (either by locating an installation of Xcode on macOS, or looking for
6767` swiftc ` on the system path on Linux).
6868
69+ ### 3. Additional configuration (Linux only)
70+
71+ The ` swift_binary ` and ` swift_test ` rules expect to use ` clang ` as the driver
72+ for linking, and they query the Bazel C++ API and CROSSTOOL to determine which
73+ arguments should be passed to the linker. By default, the C++ toolchain used by
74+ Bazel is ` gcc ` , so Swift users on Linux need to override this by setting the
75+ environment variable ` CC=clang ` when invoking Bazel.
76+
77+ This step is not necessary for macOS users because the Xcode toolchain always
78+ uses ` clang ` .
79+
6980## Future Work
7081
7182* Support for building and linking to shared libraries (` .dylib ` /` .so ` ) written
You can’t perform that action at this time.
0 commit comments