The default CPU on FreeBSD for i386 should be i486, not pentium4.
Patch by Dimitry Andric! llvm-svn: 126763
This commit is contained in:
parent
63657fe995
commit
432f10df68
|
@ -726,6 +726,11 @@ void Clang::AddX86TargetArgs(const ArgList &Args,
|
||||||
CPUName = "x86-64";
|
CPUName = "x86-64";
|
||||||
else if (getToolChain().getArchName() == "i386")
|
else if (getToolChain().getArchName() == "i386")
|
||||||
CPUName = "i486";
|
CPUName = "i486";
|
||||||
|
} else if (getToolChain().getOS().startswith("freebsd")) {
|
||||||
|
if (getToolChain().getArchName() == "x86_64")
|
||||||
|
CPUName = "x86-64";
|
||||||
|
else if (getToolChain().getArchName() == "i386")
|
||||||
|
CPUName = "i486";
|
||||||
} else if (getToolChain().getOS().startswith("netbsd")) {
|
} else if (getToolChain().getOS().startswith("netbsd")) {
|
||||||
if (getToolChain().getArchName() == "x86_64")
|
if (getToolChain().getArchName() == "x86_64")
|
||||||
CPUName = "x86-64";
|
CPUName = "x86-64";
|
||||||
|
|
Loading…
Reference in New Issue