_maybe_wrap_launcher_for_windows
selects wrapper based on target platform
#420
Labels
bug
Something isn't working
_maybe_wrap_launcher_for_windows
selects wrapper based on target platform.By using
ctx.target_platform_has_constraint(ctx.attr._windows_constraint[platform_common.ConstraintValueInfo])
, the bat wrapper is added when targeting windows and not when executing actions on Windows.This breaks in two cases:
I feel like this should use a different mechanism to select the correct wrapper based on the execution platform.
EDIT: I'm not sure if I understand all of the nuance here but I think we could either add an attribute to rules:
... or do the wrapping as part of a toolchain. What do you think?
The text was updated successfully, but these errors were encountered: