function resp = getBuildConfigurationOption(h,buildInfo,optionKey,returnType)
%#ok<*INUSL>

%   Copyright 2014 The MathWorks, Inc.

if nargin==3
    returnType = 'value';
end
if (~h.usingCustomBuildConfiguration())
    cfg = h.getBuildConfigurationObject();
    resp = cfg.getOption( optionKey, returnType );
else
    resp = h.getCustomToolchainOptions( optionKey, returnType );
end
end
