mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
Reuse old build options if new ones are NULL
Change-Id: I435e7ec8554b0429dcf4f6f8d9d4fd80e70b68c6
This commit is contained in:
committed by
sys_ocldev
parent
cd85bcffdb
commit
746cf7fd33
@@ -66,7 +66,9 @@ cl_int Program::build(
|
||||
if (isCreatedFromBinary == false) {
|
||||
buildStatus = CL_BUILD_IN_PROGRESS;
|
||||
|
||||
options = (buildOptions) ? buildOptions : "";
|
||||
if (nullptr != buildOptions) {
|
||||
options = buildOptions;
|
||||
}
|
||||
extractInternalOptions(options);
|
||||
applyAdditionalOptions();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user