Enable switching launcher's Windows target for remote execution.
When --define EXECUTOR=remote is specified in bazel command, embedded
tools 'launcher' will be compiled remotely from source.
package(default_visibility = ["//visibility:public"])
+filegroup(
+ name = "launcher_windows",
+ srcs = select({
+ "//src:remote": ["//src/tools/launcher:launcher"],
+ "//conditions:default": ["launcher.exe"],
+ }),
+)
+
filegroup(
name = "launcher",
srcs = select({
- "//src:host_windows": ["launcher.exe"],
- "//src:host_windows_msvc": ["launcher.exe"],
- "//src:host_windows_msys": ["launcher.exe"],
+ "//src:host_windows": [":launcher_windows"],
+ "//src:host_windows_msvc": [":launcher_windows"],
+ "//src:host_windows_msys": [":launcher_windows"],
"//conditions:default": [
"//src/tools/launcher:launcher",
],
