Skip to content

Commit 3cd45a5

Browse files
committed
250902.151209.CST [skip ci] matlab: revise compile.m comments regarding getMexLibgcc
1 parent a88bbb1 commit 3cd45a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

matlab/setup_tools/compile.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ function compile(solvers, mexdir, fortd, gateways, options)
9999
gcc_version = getMexLibgcc().gccVersion;
100100
catch exception
101101
gcc_version = '';
102-
if verbose && isunix && ~ismac % As of 20250902, getMexLibgcc supports only Linux.
102+
% As of 20250902, getMexLibgcc supports only Linux; indeed, if MEX is configured according
103+
% to the documentation of MathWorks, then compiler_manufacturer contains 'gnu' only on Linux.
104+
if verbose && isunix && ~ismac
103105
warning('prima:FailToGetGccVersion', 'Fail to get the version of libgcc: %s', exception.message);
104106
end
105107
end

0 commit comments

Comments
 (0)