Skip to content

Commit

Permalink
do not link some external library resources (user32, pthread, X11)
Browse files Browse the repository at this point in the history
  • Loading branch information
vwaurich authored and OpenModelica-Hudson committed Oct 4, 2016
1 parent c687a77 commit db19191
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Compiler/SimCode/SimCodeFunctionUtil.mo
Expand Up @@ -2123,6 +2123,24 @@ algorithm
case Absyn.STRING("lapack") then ({},{});
case Absyn.STRING("Lapack") then ({},{});

//pthreads is already linked under windows
case Absyn.STRING(str as "pthread") guard System.os()=="Windows_NT"
equation
Error.addCompilerNotification("pthreads library is already available. It is not linked from the external library resource directory.\n");
then ({},{});

//user32 is already linked under windows
case Absyn.STRING(str as "User32") guard System.os()=="Windows_NT"
equation
Error.addCompilerNotification("User32 library is already available. It is not linked from the external library resource directory.\n");
then ({},{});

//do not link X11.dll for Modelica Device Drivers as it is not needed under windows
case Absyn.STRING(str as "X11") guard System.os()=="Windows_NT"
equation
Error.addCompilerNotification("X11 library is not needed under Windows. It is not linked from the external library resource directory.\n");
then ({},{});

case Absyn.STRING(str as "omcruntime")
equation
if "Windows_NT" == System.os() then
Expand Down

0 comments on commit db19191

Please sign in to comment.