fix: Support multiple option settings in ocloc

If ocloc is given -options several times, the variable is overwritten.
This change allows the user to add additional options multiple times.

Signed-off-by: Daria Hinz <daria.hinz@intel.com>
This commit is contained in:
Daria Hinz
2023-01-20 10:24:28 +01:00
committed by Compute-Runtime-Automation
parent 2aacc04ffd
commit 4d359b5eef
2 changed files with 23 additions and 1 deletions

View File

@@ -698,7 +698,7 @@ int OfflineCompiler::parseCommandLine(size_t numArgs, const std::vector<std::str
} else if ("-gen_file" == currArg) {
useGenFile = true;
} else if (("-options" == currArg) && hasMoreArgs) {
options = argv[argIndex + 1];
CompilerOptions::concatenateAppend(options, argv[argIndex + 1]);
argIndex++;
} else if (("-internal_options" == currArg) && hasMoreArgs) {
CompilerOptions::concatenateAppend(internalOptions, argv[argIndex + 1]);