Rename gSpirVPath to gCompilationCachePath

gSpirVPath controls the location of the compilation cache for SPIR-V
offline compilation, but its use would also make sense for binary
offline compilation.  This change renames it to gCompilationCachePath.
This commit is contained in:
Stuart Brady
2019-06-27 18:15:15 +01:00
committed by Kévin Petit
parent 0b1520f508
commit 6eec559ffd
3 changed files with 8 additions and 8 deletions

View File

@@ -29,7 +29,7 @@ using namespace std;
CompilationMode gCompilationMode = kOnline;
CompilationCacheMode gCompilationCacheMode = kCacheModeCompileIfAbsent;
std::string gSpirVPath = ".";
std::string gCompilationCachePath = ".";
void helpInfo ()
{
@@ -82,14 +82,14 @@ int parseCustomParam (int argc, const char *argv[], const char *ignore)
if (!strcmp(argv[i + 2], "cache"))
{
gCompilationCacheMode = kCacheModeForceRead;
gSpirVPath = argv[i + 3];
gCompilationCachePath = argv[i + 3];
log_info(" SpirV reading from cache enabled.\n");
delArg += 2;
}
else if (!strcmp(argv[i + 2], "generate"))
{
gCompilationCacheMode = kCacheModeOverwrite;
gSpirVPath = argv[i + 3];
gCompilationCachePath = argv[i + 3];
log_info(" SpirV force generate binaries enabled.\n");
delArg += 2;
}