function ret = getLocalBuildDir(h)
% internal use only

%   Copyright 2017-2019 The MathWorks, Inc.

bd = h.getSourcePaths(false, 'BuildDir');

if isempty(bd)
    ret = '';
else
    ret = h.formatPaths(bd{1});
    ret = strrep(ret, h.Settings.FileSep, filesep); 
end
