Skip to content

Commit

Permalink
Add ModelicaMatIO for MSL 3.2.1
Browse files Browse the repository at this point in the history
If ModelicaStandardTables is specified, we add ModelicaMatIO because
the MSL version of ModelicaExternalC lacks some Mat_* variables if
we don't.
  • Loading branch information
sjoelund committed Feb 26, 2016
1 parent e4cafbc commit a3605ed
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Compiler/SimCode/SimCodeFunctionUtil.mo
Expand Up @@ -2148,15 +2148,20 @@ algorithm
then (if System.os()=="Windows_NT" then {"-lfmilib","-lshlwapi"} else {"-lfmilib"},{});

case Absyn.STRING(str)
equation
algorithm
if str=="ModelicaStandardTables" then
(strs,names) := getLibraryStringInGccFormat(Absyn.STRING("ModelicaMatIO"));
else
strs := {};
names := {};
end if;
// If the string is a file, return it as it is
// If the string starts with a -, it's probably -l or -L gcc flags
if System.regularFileExists(str) or "-" == stringGetStringChar(str, 1) then
strs = {str};
names = {};
strs := str::strs;
else
strs = {"-l" + str};
names = {str};
strs := ("-l" + str)::strs;
names := str::names;
end if;

then (strs,names);
Expand Down

0 comments on commit a3605ed

Please sign in to comment.