function bc = getCustomBuildConfiguration(h,cfgName)

% Copyright 2014-2020 The MathWorks, Inc.

narginchk( 2, 2 );
if ~h.hasCustomBuildConfiguration( cfgName )
error( message( 'coder_compile:toolchain:BuildConfigNotFound', cfgName ) );
end
bc = h.CustomBuildConfigurations.getValue( cfgName );
end