Skip to content

Commit 1ef49f7

Browse files
committed
- Bump version number in README in anticipation of next release.
- Add instructions about configuring Clang on Linux. RELNOTES: Linux users must set `CC=clang` in their environment. PiperOrigin-RevId: 206804748
1 parent 981890e commit 1ef49f7

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff 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:
5151
git_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

5757
load(
@@ -66,6 +66,17 @@ The `swift_rules_dependencies` macro creates a toolchain appropriate for your
6666
platform (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

0 commit comments

Comments
 (0)