Browse Source

Allow CPU mining explicitly enable only if other mining support is built in.

Con Kolivas 14 years ago
parent
commit
c487383cf4
2 changed files with 3 additions and 3 deletions
  1. 1 1
      README
  2. 2 2
      main.c

+ 1 - 1
README

@@ -203,7 +203,7 @@ CPU only options:
         sse2_64         SSE2 64 bit implementation for x86_64 machines
         sse4_64         SSE4.1 64 bit implementation for x86_64 machines (default: sse2_64)
 --cpu-threads|-t <arg> Number of miner CPU threads (default: 4)
---enable-cpu|-C     Enable CPU mining with other mining (default: no CPU mining if suitable devices exist)
+--enable-cpu|-C     Enable CPU mining with other mining (default: no CPU mining if other devices exist)
 
 
 

+ 2 - 2
main.c

@@ -1574,10 +1574,10 @@ static struct opt_table opt_config_table[] = {
 		     set_float_0_to_99, &opt_show_floatval, &opt_donation,
 		     "Set donation percentage to cgminer author (0.0 - 99.9)"),
 #ifdef HAVE_OPENCL
-#ifdef WANT_CPUMINE
+#if defined(WANT_CPUMINE) && (defined(HAVE_OPENCL) || defined(USE_BITFORCE))
 	OPT_WITHOUT_ARG("--enable-cpu|-C",
 			opt_set_bool, &opt_usecpu,
-			"Enable CPU mining with GPU mining (default: no CPU mining if suitable GPUs exist)"),
+			"Enable CPU mining with other mining (default: no CPU mining if other devices exist)"),
 #endif
 #endif
 	OPT_WITH_ARG("--expiry|-E",