0.7.0
-
This release is tested with Bazel 0.23.0.
-
swift_library
now lists the Objective-C bridging header as one of its output files. -
The
cc_libs
andmodule_link_name
attributes have been removed from the Swift rules. If you need to create a static library that contains both Swift and C++ code, have theswift_library
depend on thecc_library
and then use another rule, such as agenrule
, to combine the archives.To replace the behavior of the
module_link_name
attribute, pass the-module-link-name <name>
flags directly in the target'scopts
. This change no longer affects the name of the output library; it is the responsibility of the user to ensure that the.a
file that is output by the rule matches the link name embedded in the module. This allows the link name to refer to an archive emitted by a different rule, such as one that merges static archives as described above. -
Feature-related APIs in
swift_common
have changed slightly. Theget_{disabled,enabled}_features
methods have been removed, andis_enabled
has been added. Also, the Swift feature configuration now embeds a C++ feature configuration (accessible by callingswift_common.cc_feature_configuration
) for users who need to call C++ APIs with a feature configuration compatible with the Swift toolchain's underlying C++ toolchain. -
Uses of the legacy
"cc"
provider have been migrated to the newCcInfo
provider. -
Uses of the legacy
"instrumented_files"
provider have been migrated to the newInstrumentedFilesInfo
provider. -
Information in
SwiftInfo
providers is no longer lost when passing through a non-Swift target (such asobjc_library
). In some cases, build graphs could be constructed that caused upstream Swift compilations to not be passed the.swiftmodule
files they needed to perform type lookups.