File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -152,14 +152,14 @@ function publishTask(context)
152152if 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
165165end
You can’t perform that action at this time.
0 commit comments