Skip to content

Commit 55dacd8

Browse files
committed
buildfile: minimum GCC 8
1 parent 40bfab3 commit 55dacd8

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

buildfile.m

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,16 @@ function publishTask(context)
152152
if msvc
153153
std = "/std:c++17";
154154
% on Windows, Matlab doesn't register unsupported MSVC or oneAPI
155-
elseif ismac
156-
if cxx.Name == "Xcode Clang++"
157-
if isMATLABReleaseOlderThan("R2023b") && stdlib.version_atleast(cxx.Version, "15.0")
158-
warning("Xcode Clang++ " + cxx.Version + " may not support this Matlab version")
159-
end
155+
elseif cxx.Name == "Xcode Clang++"
156+
if isMATLABReleaseOlderThan("R2023b") && stdlib.version_atleast(cxx.Version, "15.0")
157+
warning("Xcode Clang++ " + cxx.Version + " may not support this Matlab version")
160158
end
161-
elseif isunix
162-
if ~strlength(compiler_id) && cxx.ShortName == "g++" && ~stdlib.version_atleast(cxx.Version, "9")
159+
elseif ~strlength(compiler_id) && cxx.ShortName == "g++"
160+
if ~stdlib.version_atleast(cxx.Version, "8")
161+
warning("g++ 8 or newer is required for MEX, detected g++" + cxx.Version)
162+
end
163+
164+
if ~stdlib.version_atleast(cxx.Version, "9")
163165
linker_opt = "-lstdc++fs";
164166
end
165167
end

0 commit comments

Comments
 (0)