Commit 4969162c03033cbdddc16b4670a0a71d85a8336f

Con Kolivas 2011-08-29T10:12:34

Check for SSE2 before trying to build 32 bit SSE2 assembly version. Prevents build failure when yasm is installed but -msse2 is not specified.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/miner.h b/miner.h
index 89894eb..0414bf9 100644
--- a/miner.h
+++ b/miner.h
@@ -55,7 +55,7 @@ void *alloca (size_t);
 #define WANT_SSE2_4WAY 1
 #endif
 
-#if defined(__i386__) && defined(HAS_YASM)
+#if defined(__i386__) && defined(HAS_YASM) && defined(__SSE2__)
 #define WANT_X8632_SSE2 1
 #endif