You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 18, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: Compiler/SimCode/SimCodeFunctionUtil.mo
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1785,8 +1785,11 @@ protected function lookForExtFunctionLibrary
1785
1785
input Option<String> resources;
1786
1786
input Absyn.Path path;
1787
1787
input SourceInfo info;
1788
+
protected
1789
+
list<String> dirs2;
1788
1790
algorithm
1789
-
ifnot max(System.regularFileExists(d+"/"+n) for d in dirs, n in names) then
1791
+
dirs2 :="/usr/lib/"+System.getTriple()::"/lib/"+System.getTriple()::"/usr/lib/"::"/lib/"::dirs; // We could also try to look in ldconfig, etc for system libraries
1792
+
ifnot max(System.regularFileExists(d+"/"+n) for d in dirs2, n in names) then
Error.addSourceMessage(Error.COMPILER_WARNING, {"Failed to run "+cmd+": "+ contents}, info);
1814
1817
else
1815
1818
Error.addSourceMessage(Error.COMPILER_NOTIFICATION, {"Succeeded with compilation and installation of the library using:\ncommand: "+cmd+"\n"+ contents}, info);
1816
-
ifnot max(System.regularFileExists(d+"/"+n) for d indirs, n in names) then
1819
+
ifnot max(System.regularFileExists(d+"/"+n) for d indirs2, n in names) then
0 commit comments