cmd/compile: reject -race and -msan on non-amd64 arches #24315
cmd/compile currently allows using the -race and -msan flags on any architecture, but there's only runtime support on amd64. Further, -race support wouldn't current work on LR architectures even with runtime support, because racewalk.go hardcodes assumptions about where to find the caller's PC.
Another complication is there are a handful of regress tests that explicitly set
For comparison, the -dynlink and -shared flags are only usable on platforms where they're supported.
My personal preference would be to make setting -race or -msan an error on !amd64 arches.
@cherrymui suggested CL 99676 to make -race a silent no-op on !amd64.