Skip to content

Commit

Permalink
- flag +d=disableWindowsPathCheckWarning (Disables warnings on Window…
Browse files Browse the repository at this point in the history
…s if OPENMODELICAHOME/MinGW is missing).

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18894 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Jan 31, 2014
1 parent cf8385a commit 8a17ec8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Compiler/Main/Main.mo
Expand Up @@ -982,6 +982,13 @@ algorithm
then
();

// do not display anything if +d=disableWindowsPathCheckWarning
case (omHome)
equation
true = Flags.isSet(Flags.DISABLE_WINDOWS_PATH_CHECK_WARNING);
then
();

else
equation
print("We could not find any of:\n");
Expand Down
5 changes: 4 additions & 1 deletion Compiler/Util/Flags.mo
Expand Up @@ -375,6 +375,8 @@ constant DebugFlag HPCOM_DUMP = DEBUG_FLAG(104, "hpcomDump", false,
Util.gettext("dumps additional information on the parallel execution with hpcom"));
constant DebugFlag RESOLVE_LOOPS = DEBUG_FLAG(105, "resolveLoops", false,
Util.gettext("activates the resolveLoops module"));
constant DebugFlag DISABLE_WINDOWS_PATH_CHECK_WARNING = DEBUG_FLAG(106, "disableWindowsPathCheckWarning", false,
Util.gettext("Disables warnings on Windows if OPENMODELICAHOME/MinGW is missing"));

// This is a list of all debug flags, to keep track of which flags are used. A
// flag can not be used unless it's in this list, and the list is checked at
Expand Down Expand Up @@ -485,7 +487,8 @@ constant list<DebugFlag> allDebugFlags = {
ADDITIONAL_GRAPHVIZ_DUMP,
INFO_XML_OPERATIONS,
HPCOM_DUMP,
RESOLVE_LOOPS
RESOLVE_LOOPS,
DISABLE_WINDOWS_PATH_CHECK_WARNING
};

// CONFIGURATION FLAGS
Expand Down

0 comments on commit 8a17ec8

Please sign in to comment.