Skip to content

Commit

Permalink
- remove the space at the end of OPENMODELICAHOME in:
Browse files Browse the repository at this point in the history
  set OPENMODELICAHOME="..." && ...
  by adding a \\\n after the last "
- any of the OpenModelica nightly-builds done since
  this space appeared are not able to compile any models
  if OMDev is not present. Doh!
- many thanks to Carlos Antunes [ cmantunes <AT> nowthor <DOT> com ]
  for pointing this out!

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@6280 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Oct 4, 2010
1 parent ac6d9d6 commit 182027f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Compiler/CevalScript.mo
Expand Up @@ -2717,7 +2717,12 @@ algorithm
System.writeFile(libsfilename, libs_str);
extra_command = setCompileCommandEnvironmentFromSolverMethod(solverMethod);
// We only need to set OPENMODELICAHOME on Windows, and set doesn't work in bash shells anyway
omhome = Util.if_(System.os() ==& "Windows_NT", "set OPENMODELICAHOME=" +& omhome_1 +& " && ", "OPENMODELICAHOME=\"$OPENMODELICAHOME\" ");
// adrpo: 2010-10-05:
// whatever you do, DO NOT delete \\\n before the && otherwise
// OPENMODELICAHOME that we set will contain a SPACE at the end!
// set OPENMODELICAHOME="...." && actually adds the space between " and &&
// to the environment variable! Don't ask me why, ask Microsoft.
omhome = Util.if_(System.os() ==& "Windows_NT", "set OPENMODELICAHOME=\"" +& omhome_1 +& "\"\\\n && ", "OPENMODELICAHOME=\"$OPENMODELICAHOME\" ");
s_call =
Util.stringAppendList({omhome,extra_command,
omhome_1,pd,"share",pd,"omc",pd,"scripts",pd,"Compile"," ",fileprefix," ",noClean});
Expand Down

0 comments on commit 182027f

Please sign in to comment.