mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
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:
committed by
Compute-Runtime-Automation
parent
2aacc04ffd
commit
4d359b5eef
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user