aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Dmitry Shevchenko <dmishe@google.com>2016-05-27 15:48:12 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2016-05-30 09:19:04 +0000
commitbefa57cb19870665ff9ffa951f1c076922f3fe19 (patch)
treed036de48d6449ee1e2ead19717f88e269499bfad /examples
parent7d0f7b6b4b0f297e935d918b045916301fa9f91e (diff)
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
Diffstat (limited to 'examples')
-rw-r--r--examples/swift/BarLib/BUILD1
-rw-r--r--examples/swift/foo.swift2
2 files changed, 2 insertions, 1 deletions
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() {}