Skip to content

Commit 88e8266

Browse files
committed
260510.121546.CST [skip ci] again again, correct the setting of compiler_options
1 parent 0c752e3 commit 88e8266

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

matlab/setup_tools/compile.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,11 @@ function compile(solvers, mexdir, fortd, gateways, options)
133133
% when MEX is called with `compiler_options`. See Append Compiler Options in
134134
% https://www.mathworks.com/help/matlab/ref/mex.html
135135
% N.B.: on Windows with MinGW, the compiler is gfortran, and the option should be passed via
136-
% FCCOMPFLAGS rather than COMPFLAGS.
136+
% FCFLAGS rather than COMPFLAGS.
137137
if ispc && contains(compiler_manufacturer, 'intel') % on Windows with Microsoft Visual Studio compilers
138138
compiler_options = ['COMPFLAGS="$COMPFLAGS ', extra_compiler_options, '"'];
139139
elseif ispc && contains(compiler_manufacturer, 'gnu') % on Windows with MinGW
140-
compiler_options = ['FCCOMPFLAGS="$FCCOMPFLAGS ', extra_compiler_options, '"'];
140+
compiler_options = ['FCFLAGS="$FCFLAGS ', extra_compiler_options, '"'];
141141
else % with MinGW (on Windows), macOS, and Linux compilers
142142
compiler_options = ['FFLAGS="$FFLAGS ', extra_compiler_options, '"'];
143143
end

0 commit comments

Comments
 (0)