Skip to content

Commit

Permalink
fixed a bug where multiple C++ compilers threw an error
Browse files Browse the repository at this point in the history
  • Loading branch information
sg-s committed Jun 22, 2020
1 parent b3dc83b commit 5ff504d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions @xolotl/rebase.m
Expand Up @@ -56,10 +56,10 @@ function rebase(self)

cc = mex.getCompilerConfigurations('C++');

if length(cc) == 1
if length(cc) > 0
compilerok = true;
end

setpref('xolotl','compilerok',compilerok)

corelib.assert(length(cc)==1,'No C++ compiler found. xolotl will not be able to run! ')
corelib.assert(compilerok,'No C++ compiler found. xolotl will not be able to run! ')

0 comments on commit 5ff504d

Please sign in to comment.