Bug 774414 - Disable sse by default on the 32 bit linux build of clang. r=rail.

DONTBUILD.

--HG--
extra : rebase_source : 82b0bbcb013de2b49a2af15be0a32318c3a854fb
This commit is contained in:
Rafael Ávila de Espíndola 2012-07-16 15:49:46 -04:00
parent b4f05a5530
commit 8318d3adcf
2 changed files with 14 additions and 0 deletions

View File

@ -100,6 +100,7 @@ if not os.path.exists(source_dir):
if not isDarwin:
patch("old-ld-hack.patch", 1, llvm_source_dir)
patch("compiler-rt-gnu89-inline.patch", 0, compiler_rt_source_dir)
patch("no-sse-on-linux.patch", 1, clang_source_dir)
if os.path.exists(build_dir):
shutil.rmtree(build_dir)

View File

@ -0,0 +1,13 @@
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index 59196b2..a32c154 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -1115,7 +1115,7 @@ void Clang::AddX86TargetArgs(const ArgList &Args,
if (getToolChain().getArch() == llvm::Triple::x86_64)
CPUName = "x86-64";
else if (getToolChain().getArch() == llvm::Triple::x86)
- CPUName = "pentium4";
+ CPUName = "i686";
}
}