You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: buildfile.m
+26-14Lines changed: 26 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -143,19 +143,7 @@ function build_exe(context)
143
143
case"fortran"
144
144
comp = getenv("FC");
145
145
if isempty(comp)
146
-
disp("set FC environment variable to the Fortran compiler path, or do 'mex -setup fortran'")
147
-
if ismac()
148
-
p ='/opt/homebrew/bin/';
149
-
for fc = ["flang", "gfortran"]
150
-
comp =stdlib.which(fc, p);
151
-
if ~isempty(comp)
152
-
% disp(lang + " compiler: " + comp)
153
-
setenv("FC", comp);
154
-
return
155
-
end
156
-
end
157
-
disp("on macOS, environment variables propagate in to GUI programs like Matlab by using 'launchctl setenv FC' and a reboot. Or by using 'FC=gfortran matlab -batch buildtool exe'")
0 commit comments