function hostTcNames = getHostToolchains
% GETHOSTTOOLCHAINS Get the host-based toolchain names

% Copyright 2013-2019 The MathWorks, Inc.

% don't load the mat file every time
persistent hostTcs
if isempty(hostTcs)
    hostTCMatFile = fullfile(matlabroot,'toolbox','coder',...
        'compile','tools',['host_toolchain_names_', computer('arch'), '.mat']);
    hostTCMatFileContents = load(hostTCMatFile);
    hostTcs = hostTCMatFileContents.hostTCNames;    
end

% return a cell array of host names
hostTcNames = hostTcs;

end


% LocalWords:  toolchain toolchains
