Skip to content

Commit

Permalink
- Use System.getExeExt instead of hard-coded values
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@10045 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Oct 7, 2011
1 parent b401db0 commit fd1d479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/Script/CevalScript.mo
Expand Up @@ -2560,8 +2560,8 @@ algorithm
Debug.fprintln("dynload", "compileModel: running " +& s_call);

// remove .exe .dll .log!
fileEXE = Debug.bcallret2(isWindows,stringAppend,fileprefix,".exe",fileprefix);
fileDLL = Debug.bcallret2(isWindows,stringAppend,fileprefix,".dll",fileprefix);
fileEXE = fileprefix +& System.getExeExt();
fileDLL = fileprefix +& System.getDllExt();
fileLOG = Debug.bcallret2(isWindows,stringAppend,fileprefix,".log",fileprefix);
0 = Debug.bcallret1(System.regularFileExists(fileEXE),System.removeFile,fileEXE,0);
0 = Debug.bcallret1(System.regularFileExists(fileDLL),System.removeFile,fileDLL,0);
Expand Down

0 comments on commit fd1d479

Please sign in to comment.