================ @@ -1672,8 +1672,29 @@ StringRef sys::getHostCPUName() { return "generic"; } #elif defined(__riscv) +// struct riscv_hwprobe +struct RISCVHwProbe { ---------------- jrtc27 wrote: This is Linux-specific, it should be guarded as such https://github.com/llvm/llvm-project/pull/142745