-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent downloaded of perl for all platforms (#33)
Previously, the darwin, linux and windows variants of perl would be downloaded even if only one of them were required. Now, only the required toolchains are downloaded.
- Loading branch information
Showing
5 changed files
with
43 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,10 @@ | ||
# This template is used by perl_download to generate a build file for | ||
# a downloaded Perl distribution. | ||
|
||
load("@rules_perl//perl:toolchain.bzl", "perl_toolchain") | ||
package(default_visibility = ["//visibility:public"]) | ||
|
||
# tools contains executable files that are part of the toolchain. | ||
filegroup( | ||
name = "runtime", | ||
srcs = glob(["**/*"]), | ||
) | ||
|
||
# toolchain_impl gathers information about the Perl toolchain. | ||
# See the PerlToolchain provider. | ||
perl_toolchain( | ||
name = "toolchain_impl", | ||
runtime = [":runtime"], | ||
) | ||
|
||
# toolchain is a Bazel toolchain that expresses execution and target | ||
# constraints for toolchain_impl. This target should be registered by | ||
# calling register_toolchains in a WORKSPACE file. | ||
toolchain( | ||
name = "toolchain", | ||
exec_compatible_with = [ | ||
{exec_constraints}, | ||
], | ||
toolchain = ":toolchain_impl", | ||
toolchain_type = "@rules_perl//:toolchain_type", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters