summaryrefslogtreecommitdiffstats
path: root/base/cpu_unittest.cc
diff options
context:
space:
mode:
authorhbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-24 10:50:25 +0000
committerhbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-24 10:50:25 +0000
commit28947cb67075ba40a8db89e385a32d0b3b0c6894 (patch)
treef2e227f0eff9c4e602e5390bfcc6140730c79897 /base/cpu_unittest.cc
parent0e3ef253954afd65a6d8a595c4464a219d7c8de9 (diff)
downloadchromium_src-28947cb67075ba40a8db89e385a32d0b3b0c6894.zip
chromium_src-28947cb67075ba40a8db89e385a32d0b3b0c6894.tar.gz
chromium_src-28947cb67075ba40a8db89e385a32d0b3b0c6894.tar.bz2
Prevent compiling cpu_unittest on i386 (Take 2).
This change prevents compiling cpu_unittest on 32-bit GCC since some builders does not compile with SSE support. TBR=jiesun BUG=none TEST=fix build. Review URL: http://codereview.chromium.org/6581032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75872 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/cpu_unittest.cc')
-rw-r--r--base/cpu_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/cpu_unittest.cc b/base/cpu_unittest.cc
index 03e25c5..f9351cc 100644
--- a/base/cpu_unittest.cc
+++ b/base/cpu_unittest.cc
@@ -51,7 +51,7 @@ TEST(CPU, RunExtendedInstructions) {
// Execute an SSE 4.2 instruction.
__asm crc32 eax, eax;
}
-#elif defined(OS_POSIX) || defined(__x86_64__)
+#elif defined(OS_POSIX) && defined(__x86_64__)
ASSERT_TRUE(cpu.has_mmx());
// Execute an MMX instruction.