Permalink
Browse files

lang: LanguageConfig - recompiling the class library should re-read c…

…onfig file

Signed-off-by: Tim Blechmann <tim@klingt.org>
  • Loading branch information...
timblechmann committed Oct 3, 2012
1 parent b88d11a commit c2bfc3c88d292644ed17ec2966f848969f32b1a8
Showing with 2 additions and 4 deletions.
  1. +1 −1 HelpSource/Classes/LanguageConfig.schelp
  2. +1 −3 lang/LangSource/PyrLexer.cpp
@@ -28,7 +28,7 @@ subsection:: Library Path Handling
The language configuration mechanism provides a way to add or exclude specific paths for the class library.
-note::Changes to the class library paths won't have any effect before recompiling the class library.::
+note::Changes to the class library paths won't have any effect before the configuration file is stored and the class library is recompiled.::
METHOD:: includePaths
Return the class library include paths.
@@ -2117,9 +2117,7 @@ SC_DLLEXPORT_C bool compileLibrary()
gNumCompiledFiles = 0;
compiledOK = false;
- // FIXME: the library config should have been initialized earlier!
- if (!gLanguageConfig)
- SC_LanguageConfig::readDefaultLibraryConfig();
+ SC_LanguageConfig::readDefaultLibraryConfig();
compileStartTime = elapsedTime();

0 comments on commit c2bfc3c

Please sign in to comment.