We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CC
1 parent c85676d commit d69bc40Copy full SHA for d69bc40
swift/internal/swift_autoconfiguration.bzl
@@ -207,7 +207,8 @@ def _create_linux_toolchain(repository_ctx):
207
Args:
208
repository_ctx: The repository rule context.
209
"""
210
- if "clang" not in repository_ctx.os.environ.get("CC"):
+ cc = repository_ctx.os.environ.get("CC") or ""
211
+ if "clang" not in cc:
212
fail("ERROR: rules_swift uses Bazel's CROSSTOOL to link, but Swift " +
213
"requires that the driver used is clang. Please set `CC=clang` " +
214
"in your environment before invoking Bazel.")
0 commit comments