-
-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathWORKSPACE.bazel
More file actions
26 lines (21 loc) · 844 Bytes
/
WORKSPACE.bazel
File metadata and controls
26 lines (21 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
workspace(name = "rules_perl")
load("@rules_perl//perl:deps.bzl", "perl_register_toolchains", "perl_rules_dependencies", "perl_rules_dev_dependencies")
load("//perl:platforms.bzl", "PLATFORMS")
perl_rules_dependencies()
perl_register_toolchains()
# The following invocation of register_toolchains shouldn't be required as the
# toolchains should be registered in perl_register_toolchains but for some
# reason the invocation of native.register_toolchains in
# perl_register_toolchains() doesn't seem to work unless called from a workspace
# other than rules_perl.
[
register_toolchains(
"@rules_perl//perl:perl_{os}_{cpu}_toolchain".format(
cpu = platform.cpu,
os = platform.os,
),
)
for platform in PLATFORMS
]
# Testing only, do not add to your WORKSPACE
perl_rules_dev_dependencies()