Skip to content

Commit 2c1b15c

Browse files
committed
buildfile: minimum GCC 8
1 parent 40bfab3 commit 2c1b15c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

buildfile.m

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,14 @@ 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+
assert(stdlib.version_atleast(cxx.Version, "8"), "g++ 8 or newer is required")
161+
162+
if ~stdlib.version_atleast(cxx.Version, "9")
163163
linker_opt = "-lstdc++fs";
164164
end
165165
end

0 commit comments

Comments
 (0)