diff --git a/toolchain/cc_toolchain_config.bzl b/toolchain/cc_toolchain_config.bzl index e85e03e3da..81fe19e723 100644 --- a/toolchain/cc_toolchain_config.bzl +++ b/toolchain/cc_toolchain_config.bzl @@ -28,13 +28,16 @@ all_compile_actions = [ ] def _impl(ctx): - artifact_name_patterns = [ - artifact_name_pattern( - category_name = "executable", - prefix = "", - extension = ".exe", - ), - ] + if 'mingw' in ctx.attr.target_full_name: + artifact_name_patterns = [ + artifact_name_pattern( + category_name = "executable", + prefix = "", + extension = ".exe", + ), + ] + else: + artifact_name_patterns = [] tool_paths = [ tool_path(