1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-14 08:48:01 +00:00

Fix build error without scrypt enabled.

This commit is contained in:
Con Kolivas 2012-07-29 19:13:45 +10:00
parent b40c8b848f
commit 97aa6ea492

2
ocl.c
View File

@ -536,8 +536,10 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
if (clState->goffset)
strcat(binaryfilename, "g");
if (opt_scrypt) {
#ifdef USE_SCRYPT
sprintf(numbuf, "lg%dtc%d", cgpu->lookup_gap, cgpu->thread_concurrency);
strcat(binaryfilename, numbuf);
#endif
} else {
sprintf(numbuf, "v%d", clState->vwidth);
strcat(binaryfilename, numbuf);