mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-11 01:57:00 +00:00
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:
parent
b4f05a5530
commit
8318d3adcf
@ -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)
|
||||
|
13
build/unix/build-clang/no-sse-on-linux.patch
Normal file
13
build/unix/build-clang/no-sse-on-linux.patch
Normal 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";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user