Skip to content

0.4.0

Compare
Choose a tag to compare
@allevato allevato released this 28 Mar 15:02
· 2426 commits to master since this release
  • The swift_version attribute on swift_library has been removed. If you need to set the effective Swift version of the compiler, pass the copts directly; e.g., copts = ["-swift-version", "4"].
  • Bundles should now be able to reference resources and structured resources in a different repository than the one in which the bundle target lives.
  • The bundling rules now preserve the executable bit of any files being bundled as resources, if the bit is set on the original file on the file system.
  • Some of the global --define flags used to control build behavior have been updated.

There have also been some changes related to how module maps are used when Swift targets depend on Objective-C targets. Currently, Swift libraries are allowed to import Objective-C libraries that they indirectly depend on. This will change in a future version of Bazel to only allow importing direct Objective-C dependencies. If you rely on this behavior, please update your BUILD targets now, and use the --incompatible_strict_objc_module_maps flag to verify your build afterwards.