clover: Return CL_BUILD_ERROR for CL_PROGRAM_BUILD_STATUS when compilation fails v2
v2: - Don't use _errs map Cc: 10.5 10.4 <mesa-stable@lists.freedesktop.org> Reviewed-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
@@ -90,6 +90,8 @@ cl_build_status
|
||||
program::build_status(const device &dev) const {
|
||||
if (_binaries.count(&dev))
|
||||
return CL_BUILD_SUCCESS;
|
||||
else if (_logs.count(&dev))
|
||||
return CL_BUILD_ERROR;
|
||||
else
|
||||
return CL_BUILD_NONE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user