Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit db19191

Browse files
vwaurichOpenModelica-Hudson
authored andcommitted
do not link some external library resources (user32, pthread, X11)
1 parent c687a77 commit db19191

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Compiler/SimCode/SimCodeFunctionUtil.mo

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2123,6 +2123,24 @@ algorithm
21232123
case Absyn.STRING("lapack") then ({},{});
21242124
case Absyn.STRING("Lapack") then ({},{});
21252125

2126+
//pthreads is already linked under windows
2127+
case Absyn.STRING(str as "pthread") guard System.os()=="Windows_NT"
2128+
equation
2129+
Error.addCompilerNotification("pthreads library is already available. It is not linked from the external library resource directory.\n");
2130+
then ({},{});
2131+
2132+
//user32 is already linked under windows
2133+
case Absyn.STRING(str as "User32") guard System.os()=="Windows_NT"
2134+
equation
2135+
Error.addCompilerNotification("User32 library is already available. It is not linked from the external library resource directory.\n");
2136+
then ({},{});
2137+
2138+
//do not link X11.dll for Modelica Device Drivers as it is not needed under windows
2139+
case Absyn.STRING(str as "X11") guard System.os()=="Windows_NT"
2140+
equation
2141+
Error.addCompilerNotification("X11 library is not needed under Windows. It is not linked from the external library resource directory.\n");
2142+
then ({},{});
2143+
21262144
case Absyn.STRING(str as "omcruntime")
21272145
equation
21282146
if "Windows_NT" == System.os() then

0 commit comments

Comments
 (0)