function activeCfg = getBuildConfigurationObject(h)

% Copyright 2014-2018 The MathWorks, Inc.

activeCfgName = h.BrBuildConfiguration;
if 1 % coder.make.Builder.ErrorCheckEnabled
activeCfg = h.ToolchainInfo.getBuildConfigurationNoCheck( activeCfgName );
else
activeCfg = h.ToolchainInfo.getBuildConfiguration( activeCfgName ); %#ok<UNRCH>
end
end