Debug flag support to override revisionId in ocloc

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2021-11-29 13:34:57 +00:00
committed by Compute-Runtime-Automation
parent f02bd9f58c
commit 537200dac5
2 changed files with 26 additions and 0 deletions

View File

@@ -674,6 +674,10 @@ int OfflineCompiler::parseCommandLine(size_t numArgs, const std::vector<std::str
}
}
if (DebugManager.flags.OverrideRevision.get() != -1) {
revisionId = static_cast<unsigned short>(DebugManager.flags.OverrideRevision.get());
}
if (retVal == SUCCESS) {
if (compile32 && compile64) {
argHelper->printf("Error: Cannot compile for 32-bit and 64-bit, please choose one.\n");