diff options
author | 2016-10-12 15:44:25 +0000 | |
---|---|---|
committer | 2016-10-12 17:12:42 +0000 | |
commit | 368d7b73701ada39e3373c954130e4c6de170377 (patch) | |
tree | afd42989ce884827406cbee286f6f5614553c152 /tools/build_defs/apple/test | |
parent | beb00ebf7fb5223750011568019dbf80a0f3e8c5 (diff) |
Prevent empty swift_library srcs.
* This produces more human-readable error messages in cases where sources are omitted (e.g. if a glob matches nothing).
--
MOS_MIGRATED_REVID=135920885
Diffstat (limited to 'tools/build_defs/apple/test')
-rw-r--r-- | tools/build_defs/apple/test/apple_rule_test.bzl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/build_defs/apple/test/apple_rule_test.bzl b/tools/build_defs/apple/test/apple_rule_test.bzl index 57c8dcebee..db0f345774 100644 --- a/tools/build_defs/apple/test/apple_rule_test.bzl +++ b/tools/build_defs/apple/test/apple_rule_test.bzl @@ -28,7 +28,8 @@ def apple_rule_test(): """Issue simple tests on apple rules.""" swift_library( name = "test_lib", - module_name = "test_lib" + module_name = "test_lib", + srcs = ["source.swift"] ) rule_test( |