Skip to content

Commit 79094e4

Browse files
committed
Swift genrule: Replace local with no-sandbox.
This allows the bazel cache to cache this genrule invocation. It shouldn't depend on system-specific binaries, so I believe this is correct. This is the only part of our build where we otherwise need to recompute parts after pulling in a full cache.
1 parent ec071cd commit 79094e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/third_party/BUILD.swift-toolchain-linux.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ _pm_interface_files = [
3030
srcs = ["%s/%s/%s" % (_strip_prefix, dir, interface)],
3131
outs = [module],
3232
cmd = "$(location usr/bin/swift-frontend) -compile-module-from-interface $< -o $@ -I $$(dirname $<)",
33-
local = True,
33+
tags = ["no-sandbox"],
3434
tools = ["usr/bin/swift-frontend"],
3535
),
3636
pkg_files(

0 commit comments

Comments
 (0)