On 2018-09-04 15:16:27 -0700, Andres Freund wrote: > I'm now looking at how it comes that clang on linux doesn't default to > x87 math, but freebsd does.
Oh well. I present you, without comments, the following: switch (Triple.getOS()) { case llvm::Triple::FreeBSD: case llvm::Triple::NetBSD: case llvm::Triple::OpenBSD: return "i486"; case llvm::Triple::Haiku: return "i586"; default: // Fallback to p4. return "pentium4"; } Greetings, Andres Freund