Improve support for -Xcc flags for swift indexers
Improve support for -Xcc flags for swift indexers

We can't use a set to collect OTHER_SWIFT_FLAGS as some flags
(like -Xcc) maybe be repeated multiple times.

PiperOrigin-RevId: 202345923

pinterest/tulsi,pinterest/tulsi,pinterest/tulsi,pinterest/tulsi,bazelbuild/tulsi,bazelbuild/tulsi,bazelbuild/tulsi,pinterest/tulsi,pinterest/tulsi,bazelbuild/tulsi,bazelbuild/tulsi,bazelbuild/tulsi