aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/build_defs/apple
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build_defs/apple')
-rw-r--r--tools/build_defs/apple/swift.bzl1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/build_defs/apple/swift.bzl b/tools/build_defs/apple/swift.bzl
index de3aa5d968..004d1a524a 100644
--- a/tools/build_defs/apple/swift.bzl
+++ b/tools/build_defs/apple/swift.bzl
@@ -256,6 +256,7 @@ swift_library = rule(
"defines": attr.string_list(mandatory=False, allow_empty=True),
"_xcrunwrapper": attr.label(
executable=True,
+ cfg="host",
default=Label(XCRUNWRAPPER_LABEL))},
fragments = ["apple", "objc"],
output_to_genfiles=True,