Skip to content

Commit 784464a

Browse files
committed
apply Label() wherever appropriate
1 parent 2606f8d commit 784464a

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

toolchains/default_java_toolchain.bzl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ DEFAULT_JAVACOPTS = [
6464
# Default java_toolchain parameters
6565
_BASE_TOOLCHAIN_CONFIGURATION = dict(
6666
forcibly_disable_header_compilation = False,
67-
genclass = ["@remote_java_tools//:GenClass"],
68-
header_compiler = ["@remote_java_tools//:TurbineDirect"],
69-
header_compiler_direct = ["@remote_java_tools//:TurbineDirect"],
67+
genclass = [Label("@remote_java_tools//:GenClass")],
68+
header_compiler = [Label("@remote_java_tools//:TurbineDirect")],
69+
header_compiler_direct = [Label("@remote_java_tools//:TurbineDirect")],
7070
ijar = [Label("//toolchains:ijar")],
71-
javabuilder = ["@remote_java_tools//:JavaBuilder"],
71+
javabuilder = [Label("@remote_java_tools//:JavaBuilder")],
7272
javac_supports_workers = True,
73-
jacocorunner = "@remote_java_tools//:jacoco_coverage_runner_filegroup",
73+
jacocorunner = Label("@remote_java_tools//:jacoco_coverage_runner_filegroup"),
7474
jvm_opts = BASE_JDK9_JVM_OPTS,
7575
turbine_jvm_opts = [
7676
# Turbine is not a worker and parallel GC is faster for short-lived programs.
@@ -105,7 +105,7 @@ DEFAULT_TOOLCHAIN_CONFIGURATION = _BASE_TOOLCHAIN_CONFIGURATION
105105
# However it does allow using a wider range of `--host_javabase`s, including
106106
# versions newer than the current JDK.
107107
VANILLA_TOOLCHAIN_CONFIGURATION = dict(
108-
javabuilder = ["@remote_java_tools//:VanillaJavaBuilder"],
108+
javabuilder = [Label("@remote_java_tools//:VanillaJavaBuilder")],
109109
jvm_opts = [],
110110
java_runtime = None,
111111
)
@@ -122,8 +122,8 @@ PREBUILT_TOOLCHAIN_CONFIGURATION = dict(
122122

123123
# The new toolchain is using all the tools from sources.
124124
NONPREBUILT_TOOLCHAIN_CONFIGURATION = dict(
125-
ijar = ["@remote_java_tools//:ijar_cc_binary"],
126-
singlejar = ["@remote_java_tools//:singlejar_cc_bin"],
125+
ijar = [Label("@remote_java_tools//:ijar_cc_binary")],
126+
singlejar = [Label("@remote_java_tools//:singlejar_cc_bin")],
127127
)
128128

129129
_DEFAULT_SOURCE_VERSION = "8"
@@ -159,7 +159,7 @@ def default_java_toolchain(name, configuration = DEFAULT_TOOLCHAIN_CONFIGURATION
159159
)
160160
native.toolchain(
161161
name = name + "_default_definition",
162-
toolchain_type = "@bazel_tools//tools/jdk:toolchain_type",
162+
toolchain_type = Label("@bazel_tools//tools/jdk:toolchain_type"),
163163
target_settings = [name + "_default_version_setting"],
164164
toolchain = name,
165165
)
@@ -171,7 +171,7 @@ def default_java_toolchain(name, configuration = DEFAULT_TOOLCHAIN_CONFIGURATION
171171
)
172172
native.toolchain(
173173
name = name + "_definition",
174-
toolchain_type = "@bazel_tools//tools/jdk:toolchain_type",
174+
toolchain_type = Label("@bazel_tools//tools/jdk:toolchain_type"),
175175
target_settings = [name + "_version_setting"],
176176
toolchain = name,
177177
exec_compatible_with = exec_compatible_with,

toolchains/local_java_repository.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def local_java_runtime(name, java_home, version, runtime_name = None, visibility
9393
native.toolchain(
9494
name = "runtime_toolchain_definition",
9595
target_settings = [":%s_settings_alias" % name],
96-
toolchain_type = "@bazel_tools//tools/jdk:runtime_toolchain_type",
96+
toolchain_type = Label("@bazel_tools//tools/jdk:runtime_toolchain_type"),
9797
toolchain = runtime_name,
9898
)
9999

0 commit comments

Comments
 (0)