yxsamliu wrote: This may break ROCm santizer builds since whether santizer is on should be determined by -fsanitize only, i.e. by default -fgpu-sanitize should be on. https://github.com/llvm/llvm-project/pull/126090