source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/mexcompiler.m
@
177
Last change on this file since 177 was 37, checked in by , 15 years ago | |
---|---|
File size: 412 bytes |
Line | |
---|---|
1 | function compiler = mexcompiler |
2 | % mexcompiler returns the name of the compiler used by mex. |
3 | |
4 | % Written by Tom Minka |
5 | |
6 | mexopts = fullfile(prefdir,'mexopts.bat'); |
7 | if ~exist(mexopts,'file') |
8 | compiler = ''; |
9 | return |
10 | end |
11 | fid = fopen(mexopts); |
12 | while 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 |
19 | end |
20 | fclose(fid); |
Note: See TracBrowser
for help on using the repository browser.