b5a9a5c36b
This change ensures consistent error handling across build configurations. Signed-off-by: lyndonli <Lyndon.Li@amd.com> Signed-off-by: Flora Cui <flora.cui@amd.com> Reviewed-by: Tianci Yin <tianci.yin@amd.com> Part-of: <http://10.67.69.192/wsl/rocr-runtime/-/merge_requests/40>