Browse Source

Merge commit 'ef85535' into bfgminer

Luke Dashjr 12 years ago
parent
commit
99185fb02a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      miner.c

+ 2 - 0
miner.c

@@ -1332,9 +1332,11 @@ static struct opt_table opt_config_table[] = {
 	OPT_WITHOUT_ARG("--no-submit-stale",
 	OPT_WITHOUT_ARG("--no-submit-stale",
 			opt_set_invbool, &opt_submit_stale,
 			opt_set_invbool, &opt_submit_stale,
 		        "Don't submit shares if they are detected as stale"),
 		        "Don't submit shares if they are detected as stale"),
+#ifdef HAVE_OPENCL
 	OPT_WITHOUT_ARG("--no-opencl-binaries",
 	OPT_WITHOUT_ARG("--no-opencl-binaries",
 	                opt_set_invbool, &opt_opencl_binaries,
 	                opt_set_invbool, &opt_opencl_binaries,
 	                "Don't attempt to use or save OpenCL kernel binaries"),
 	                "Don't attempt to use or save OpenCL kernel binaries"),
+#endif
 	OPT_WITH_ARG("--pass|-p",
 	OPT_WITH_ARG("--pass|-p",
 		     set_pass, NULL, NULL,
 		     set_pass, NULL, NULL,
 		     "Password for bitcoin JSON-RPC server"),
 		     "Password for bitcoin JSON-RPC server"),