You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 18, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: Compiler/BackEnd/BackendDAEUtil.mo
+22-33Lines changed: 22 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -7819,43 +7819,28 @@ protected
7819
7819
algorithm
7820
7820
if forceOrdering then
7821
7821
for name in inStrOptModules loop
7822
-
index := getModuleIndex(name, inOptModules);
7823
-
7824
-
if index < maxIndex then
7825
-
Error.addCompilerWarning("Specified ordering will be ignored. Use --"+Flags.configFlagName(Flags.DEFAULT_OPT_MODULES_ORDERING) +"=false to override module ordering.");
7826
-
maxIndex := numModules;
7827
-
else
7828
-
maxIndex := intMax(maxIndex, index);
7829
-
end if;
7822
+
for index in getModuleIndexes(name, inOptModules) loop
7823
+
if index < maxIndex then
7824
+
Error.addCompilerWarning("Specified ordering will be ignored. Use --"+Flags.configFlagName(Flags.DEFAULT_OPT_MODULES_ORDERING) +"=false to override module ordering.");
7825
+
maxIndex := numModules;
7826
+
else
7827
+
maxIndex := intMax(maxIndex, index);
7828
+
end if;
7830
7829
7831
-
if index <>-1 then
7832
7830
activeModules[index] :=true;
7833
-
else
7834
-
Error.addCompilerError("'"+ name +"' is not a valid optimization module. Please check the flags carefully.");
7835
-
fail();
7836
-
end if;
7831
+
end for;
7837
7832
end for;
7838
7833
7839
7834
for name in inEnabledModules loop
7840
-
index := getModuleIndex(name, inOptModules);
7841
-
7842
-
if index <>-1 then
7835
+
for index in getModuleIndexes(name, inOptModules) loop
7843
7836
activeModules[index] :=true;
7844
-
else
7845
-
Error.addCompilerError("'"+ name +"' is not a valid optimization module. Please check the flags carefully.");
7846
-
fail();
7847
-
end if;
7837
+
end for;
7848
7838
end for;
7849
7839
7850
7840
for name in inDisabledModules loop
7851
-
index := getModuleIndex(name, inOptModules);
7852
-
7853
-
if index <>-1 then
7841
+
for index in getModuleIndexes(name, inOptModules) loop
7854
7842
activeModules[index] :=false;
7855
-
else
7856
-
Error.addCompilerError("'"+ name +"' is not a valid optimization module. Please check the flags carefully.");
0 commit comments