Commit 902a5d27 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

ensure that mex file exists before doing comparison

parent 8c480aea
......@@ -37,9 +37,11 @@ Dmex = dir([basename '_dynamic.' mexext]);
% compile only if date of C file is greater than date of mex file
% and force is not True
if (Dmex.datenum > Dc.datenum) && ~force
disp('Mex files are newer than the source: not recompiled')
return
if ~isempty(Dmex)
if (Dmex.datenum > Dc.datenum) && ~force
disp('Mex files are newer than the source: not recompiled')
return
end
end
if ~exist('OCTAVE_VERSION')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment