Changeset 13449
- Timestamp:
- Sep 11, 2019 12:54:11 PM (3 months ago)
- Location:
- branches/dev-cw-evaluator/Compiler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev-cw-evaluator/Compiler/ModelicaCBackEnd/src/jastadd/CCodeGen/CCodeGenExternalCeval.jrag
r13440 r13449 304 304 } 305 305 input = input.concat("]"); 306 } 307 if (arg.isArray()) { 308 input = input.concat("v"); 306 309 } 307 310 if (useSeparator) { -
branches/dev-cw-evaluator/Compiler/ModelicaFrontEnd/src/java/org/jmodelica/common/evaluation/ExternalProcessCacheImpl.java
r13445 r13449 53 53 File f = new File(ext.libraryDirectory(), platform); 54 54 String libLoc = f.isDirectory() ? f.getPath() : ext.libraryDirectory(); 55 File dir = new File(libLoc); 56 File[] matches = dir.listFiles(new FilenameFilter() 57 { 58 public boolean accept(File dir, String name) 59 { 60 return name.contains(extName) && name.endsWith(SystemUtil.sharedLibraryExtension()); 61 } 62 }); 63 for(File file : matches) { 64 sharedLib = file.toString(); 65 break; 66 } 67 if (sharedLib.equals("")) { 68 for (String lib : ext.library()) { 69 File tmp = new File(libLoc, lib.concat(SystemUtil.sharedLibraryExtension())); 70 if (tmp.exists() && !tmp.isDirectory()) { 71 sharedLib = tmp.toString(); 55 if (libLoc != null) { 56 File dir = new File(libLoc); 57 File[] matches = dir.listFiles(new FilenameFilter() 58 { 59 public boolean accept(File dir, String name) 60 { 61 return name.contains(extName) && name.endsWith(SystemUtil.sharedLibraryExtension()); 62 } 63 }); 64 for(File file : matches) { 65 sharedLib = file.toString(); 66 break; 67 } 68 if (sharedLib.equals("")) { 69 for (String lib : ext.library()) { 70 File tmp = new File(libLoc, lib.concat(SystemUtil.sharedLibraryExtension())); 71 if (tmp.exists() && !tmp.isDirectory()) { 72 sharedLib = tmp.toString(); 73 } 72 74 } 73 75 } … … 149 151 arguments.add(0, executable); /* Needs to be first */ 150 152 151 mc.log().debug("Using pre-compiled evaluator for outputs: '" + getOutputArguments(ext) + "' and inputs: '" + getInputArguments(ext) );153 mc.log().debug("Using pre-compiled evaluator for outputs: '" + getOutputArguments(ext) + "' and inputs: '" + getInputArguments(ext) +"'"); 152 154 } else { 153 155 executable = mc.compileExternal(ext);
Note: See TracChangeset
for help on using the changeset viewer.