Skip to content

Commit

Permalink
- well, seems that adding \\\n didn't fix it, use just && directly wi…
Browse files Browse the repository at this point in the history
…thout a space.

  

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@6282 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Oct 5, 2010
1 parent 86a52ca commit a8e9a91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Compiler/CevalScript.mo
Expand Up @@ -2718,11 +2718,11 @@ algorithm
extra_command = setCompileCommandEnvironmentFromSolverMethod(solverMethod);
// We only need to set OPENMODELICAHOME on Windows, and set doesn't work in bash shells anyway
// adrpo: 2010-10-05:
// whatever you do, DO NOT delete \\\n before the && otherwise
// whatever you do, DO NOT add a space before the && otherwise
// OPENMODELICAHOME that we set will contain a SPACE at the end!
// set OPENMODELICAHOME="...." && actually adds the space between " and &&
// set OPENMODELICAHOME=DIR && actually adds the space between the DIR 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\" ");
omhome = Util.if_(System.os() ==& "Windows_NT", "set OPENMODELICAHOME=\"" +& omhome_1 +& "\"&& ", "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 a8e9a91

Please sign in to comment.