rules_swift
rules_swift copied to clipboard
Bazel rules to build Swift on Apple and Linux platforms
This PR added the ability to compile Swift binary with stdlib in Linux. It added `-static-stdlib` to `swiftc` invocation and added `static-stdlib-args.lnk` to linker flag. However, there is an issue...
- Swift publishes official toolchains for Windows [here](https://swift.org/download/) since Swift 5.3 ([blog post](https://swift.org/blog/swift-on-windows/)). - Bazel also [supports Windows](https://docs.bazel.build/versions/4.1.0/install-windows.html) (I believe it always has). - The Swift plugin for CLion 2021.1...
Hey, I'm trying to implement baseline coverage on scala rules and I was looking for some real world examples. Do you support baseline coverage? A quick github search didn't yield...
Currently some options like `swift.cacheable_swiftmodules` and `swift.remap_xcode_path` are disabled by default. This leads to surprising non-hermetic behavior when users attempt to make sure their builds are cacheable. I think we...
This includes all the upstream commits related to this, which is blocked on bazel's default for this feature
If you use `--{host_,}macos_minimum_os=`, that information doesn't impact how the dependent `swift_library`s are cached. This results in cache poisoning. I think this is because `swift_binary` doesn't use a transition, so...
This matches the behavior implemented in https://github.com/apple/swift-package-manager/pull/3410/ for single file modules.
- d41cdb923c8dff27570709add2838c3e4c8e40ff - 47a02f143a93f3f2ef8e61c69a634ad042c652bf - 39dfb233289c78a73c37d27b7275cb17a06ecebc - 3e90cda20649d1f729524ffecf787d63c5a65acf
The performance impact of using the global module cache is so significant for projects with multiple swift_library targets, and the crashes seem to be so rare, that I think this...
Hi, `rules_go` has this concept of [build-time code analysis](https://github.com/bazelbuild/rules_go/blob/master/go/nogo.rst). It is very very useful in a team context and has saved us many times. It's nicer than running it via...