source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/mexcompiler.m @ 86

Last change on this file since 86 was 37, checked in by (none), 15 years ago

Added original make3d

File size: 412 bytes
Line 
1function compiler = mexcompiler
2% mexcompiler returns the name of the compiler used by mex.
3
4% Written by Tom Minka
5
6mexopts = fullfile(prefdir,'mexopts.bat');
7if ~exist(mexopts,'file')
8  compiler = '';
9  return
10end
11fid = fopen(mexopts);
12while 1
13  txt = fgetl(fid);
14  if ~ischar(txt), break, end
15  if strmatch('set COMPILER=',txt)
16    compiler = txt(14:end);
17    break
18  end
19end
20fclose(fid);
Note: See TracBrowser for help on using the repository browser.