Commit 1a789a40c7326e84831b29d3cb7e3488fc258c63

Con Kolivas 2011-07-24T08:51:07

Defines missing would segfault on --help when no sse mining is built in.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/main.c b/main.c
index 6a29d56..f14f74e 100644
--- a/main.c
+++ b/main.c
@@ -154,9 +154,9 @@ int opt_vectors;
 int opt_worksize;
 int opt_scantime = 60;
 static const bool opt_time = true;
-#if defined(__SSE4_1__)
+#if defined(WANT_X8664_SSE4) && defined(__SSE4_1__)
 static enum sha256_algos opt_algo = ALGO_SSE4_64;
-#elif defined(__SSE2__)
+#elif defined(WANT_X8664_SSE2) && defined(__SSE2__)
 static enum sha256_algos opt_algo = ALGO_SSE2_64;
 #else
 static enum sha256_algos opt_algo = ALGO_C;