Skip to content

Commit

Permalink
ompMC interface and MCsquare interface - fix eval function for obtain…
Browse files Browse the repository at this point in the history
…ing preconfigured compiler flags
  • Loading branch information
wahln committed Jan 30, 2023
1 parent bdb95e9 commit 7d788f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MCsquare/matRad_compileMCsquareSparseReader.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function matRad_compileMCsquareSparseReader(dest,sourceFolder)
end

if exist ('OCTAVE_VERSION', 'builtin')
ccName = eval('mkoctfile -p CXX');
ccName = evalc('mkoctfile -p CXX');
else
myCCompiler = mex.getCompilerConfigurations('C','Selected');
ccName = myCCompiler.ShortName;
Expand Down
4 changes: 2 additions & 2 deletions ompMC/matRad_compileOmpMCInterface.m
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function matRad_compileOmpMCInterface(dest,omcFolder)
addFiles = strjoin(addFiles,' ');

if exist ('OCTAVE_VERSION','builtin')
ccName = eval('mkoctfile -p CC');
ccName = evalc('mkoctfile -p CC');
else
myCCompiler = mex.getCompilerConfigurations('C','Selected');
ccName = myCCompiler.ShortName;
Expand Down Expand Up @@ -80,7 +80,7 @@ function matRad_compileOmpMCInterface(dest,omcFolder)
%will be parsed as string arguments in MATLAB
for flag = 1:size(flags,1)
if strcmp(env,'OCTAVE')
preFlagContent = eval(['mkoctfile -p ' flags{flag,1}]);
preFlagContent = evalc(['mkoctfile -p ' flags{flag,1}]);
if ~isempty(preFlagContent)
preFlagContent = preFlagContent(1:end-1); %Strip newline
end
Expand Down

0 comments on commit 7d788f7

Please sign in to comment.