Make ctoolchain_compare.bzl more robust by using ctx.label.name as generated files name.
Make ctoolchain_compare.bzl more robust by using ctx.label.name as generated files name.

This ensures that the generated files will be unique in the package and therefore there won't be action conflict.

RELNOTES: None.
PiperOrigin-RevId: 230514342

bazelbuild/rules_cc,bazelbuild/rules_cc,bazelbuild/rules_cc,bazelbuild/rules_cc