Skip to content

Commit

Permalink
Pass all flags from the bat file to the executable. (#8721)
Browse files Browse the repository at this point in the history
  - On Windows we use a bat file. Some operations, e.g. linearize API, want
    to launch the model with specific flags straight from omc.

    Simply pass all flags passed to the bat file directly to the executable.

  - Fixes #8717.
  • Loading branch information
mahge committed Mar 18, 2022
1 parent 1d96e42 commit 43ea3e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMCompiler/Compiler/SimCode/SimCodeUtil.mo
Expand Up @@ -15300,7 +15300,7 @@ algorithm
str := "@echo off\n"
+ "set PATH=" + locations + ";%PATH%;\n"
+ "set ERRORLEVEL=\n"
+ "call \"%CD%/" + code.fileNamePrefix + ".exe\"\n"
+ "call \"%CD%/" + code.fileNamePrefix + ".exe\" %*\n"
+ "set RESULT=%ERRORLEVEL%\n"
+ "\n"
+ "exit /b %RESULT%\n";
Expand Down

0 comments on commit 43ea3e4

Please sign in to comment.