From befa57cb19870665ff9ffa951f1c076922f3fe19 Mon Sep 17 00:00:00 2001 From: Dmitry Shevchenko Date: Fri, 27 May 2016 15:48:12 +0000 Subject: Update swift_library logic for module name generation * Modules are now named after its full target path by default. * module_name attribute can be used to override this logic. -- MOS_MIGRATED_REVID=123422704 --- examples/swift/BarLib/BUILD | 1 + examples/swift/foo.swift | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/swift/BarLib/BUILD b/examples/swift/BarLib/BUILD index d575a879f1..cfd566979f 100644 --- a/examples/swift/BarLib/BUILD +++ b/examples/swift/BarLib/BUILD @@ -7,6 +7,7 @@ load("//tools/build_defs/apple:swift.bzl", "swift_library") swift_library( name = "BarLib", srcs = ["mul.swift"], + module_name = "examples_BarLib", ) filegroup( diff --git a/examples/swift/foo.swift b/examples/swift/foo.swift index 067c6730cd..1dd35c4407 100644 --- a/examples/swift/foo.swift +++ b/examples/swift/foo.swift @@ -1,4 +1,4 @@ -import class BarLib.Multiplier +import class examples_BarLib.Multiplier public class Foo { public init() {} -- cgit v1.2.3