Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
activate the needed flags when -d=-nfScalarize is on
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - #2669
  • Loading branch information
adrpo authored and OpenModelica-Hudson committed Sep 19, 2018
1 parent aa6173b commit 2708d45
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Compiler/NFFrontEnd/NFInst.mo
Expand Up @@ -113,6 +113,13 @@ protected
FlatModel flat_model;
FunctionTree funcs;
algorithm
// gather here all the flags to disable expansion
// and scalarization if -d=-nfScalarize is on
if not Flags.isSet(Flags.NF_SCALARIZE) then
// make sure we don't expand anything
Flags.set(Flags.NF_EXPAND_OPERATIONS, false);
end if;

// Create a root node from the given top-level classes.
top := makeTopNode(program);
name := Absyn.pathString(classPath);
Expand Down

0 comments on commit 2708d45

Please sign in to comment.