Skip to content

Commit

Permalink
- Adding highly useful +simCodeTarget=None
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@15718 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Apr 1, 2013
1 parent ce16b0d commit 67bc192
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Compiler/BackEnd/SimCodeMain.mo
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,8 @@ algorithm
equation
Tpl.tplNoret(CodegenJava.translateModel, simCode);
then ();
case (_,_,"None")
then ();
case (_,_,_)
equation
str = "Unknown template target: " +& target;
Expand Down
2 changes: 1 addition & 1 deletion Compiler/Util/Flags.mo
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ constant ConfigFlag POST_OPT_MODULES = CONFIG_FLAG(16, "postOptModules",
Util.gettext("Sets the post optimization modules to use in the back end. See +help=optmodules for more info."));
constant ConfigFlag SIMCODE_TARGET = CONFIG_FLAG(17, "simCodeTarget",
NONE(), EXTERNAL(), STRING_FLAG("C"),
SOME(STRING_OPTION({"CSharp", "Cpp", "Adevs", "QSS", "C", "Dump", "XML", "Java","ResidualCMP"})),
SOME(STRING_OPTION({"C", "CSharp", "Cpp", "Adevs", "QSS", "Dump", "XML", "Java","ResidualCMP", "None"})),
Util.gettext("Sets the target language for the code generation"));
constant ConfigFlag ORDER_CONNECTIONS = CONFIG_FLAG(18, "orderConnections",
NONE(), EXTERNAL(), BOOL_FLAG(true), NONE(),
Expand Down

0 comments on commit 67bc192

Please sign in to comment.