if ispref('rpp', 'CompilerRoot')
possiblePath = getpref('rpp', 'CompilerRoot');
else
- possiblePath = '/usr/local/ti/ccsv5/tools/compiler/arm_5.1.1';
+ if isunix, prefix='/usr/local'; else prefix='C:'; end
+ possiblePath = [prefix, '/ti/ccsv5/tools/compiler/arm_5.1.1'];
end
CompilerRoot = fix_slash(uigetdir(possiblePath, ...
TargetRoot = fix_slash(currentPath);
RppLibRoot = fullfile(fileparts(TargetRoot), 'lib');
- armcl = fullfile(CompilerRoot, 'bin', 'armcl');
- if ~exist(armcl),
- disp(sprintf('Error: "%s" does not exist!', armcl));
+ if ispc, ext='.exe'; else ext=''; end
+ armcl = fullfile(CompilerRoot, 'bin', ['armcl' ext]);
+ if ~exist(armcl, 'file'),
+ fprintf('Error: "%s" does not exist!\n', armcl);
return;
end