diff options
author | 2016-06-03 23:01:45 +0000 | |
---|---|---|
committer | 2016-06-06 08:03:53 +0000 | |
commit | 696a4a7e8bb96a3a1955730130f8da2a755a5356 (patch) | |
tree | 3e9f73f9e196e73a0ae610e03fb19732343f2f5c /tools/build_defs/apple | |
parent | 91d3433f34c87ac9f354a4a87a322e5a14531607 (diff) |
Add uses_swift flag to the providers exported by swift_library.
* This eliminates the need to put "dummy.swift" into objc_binary targets that depend on swift_library.
--
MOS_MIGRATED_REVID=124015750
Diffstat (limited to 'tools/build_defs/apple')
-rw-r--r-- | tools/build_defs/apple/swift.bzl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/build_defs/apple/swift.bzl b/tools/build_defs/apple/swift.bzl index 8aed62532d..9f5ec9c0da 100644 --- a/tools/build_defs/apple/swift.bzl +++ b/tools/build_defs/apple/swift.bzl @@ -122,7 +122,8 @@ def _swift_library_impl(ctx): objc_provider = apple_common.new_objc_provider( library=set([output_lib] + dep_libs), header=set([output_header]), - providers=objc_providers) + providers=objc_providers, + uses_swift=True) return struct( swift=struct( |