Skip to content

Commit

Permalink
make compilezmat compatible with matlab 2010
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed May 11, 2020
1 parent 6cedd38 commit 7252216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compilezmat.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
fprintf(1,'mex %s %s\n', CCFLAG, filelist{i});
eval(sprintf('mex %s %s', CCFLAG, filelist{i}));
end
cmd=sprintf('mex %s -Ieasylzma %s %s',mexfile, LINKFLAG, regexprep(strjoin(filelist),'\.c[p]*','\.o'));
cmd=sprintf('mex %s -Ieasylzma %s %s',mexfile, LINKFLAG, regexprep(sprintf('%s ' ,filelist{:}),'\.c[p]*','\.o'));
fprintf(1,'%s\n',cmd);
eval(cmd)
else
Expand All @@ -24,7 +24,7 @@
fflush(stdout);
eval(sprintf('mex %s %s', CCFLAG, filelist{i}));
end
cmd=sprintf('mex %s -Ieasylzma %s %s',mexfile, LINKFLAG, regexprep(strjoin(filelist),'\.c[p]*','\.o'));
cmd=sprintf('mex %s -Ieasylzma %s %s',mexfile, LINKFLAG, regexprep(sprintf('%s ' ,filelist{:}),'\.c[p]*','\.o'));
fprintf(stdout,'%s\n',cmd);fflush(stdout);
eval(cmd)
end
Expand Down

0 comments on commit 7252216

Please sign in to comment.