Commit 9fbbd157 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix detection of missing LLVM

parent f29833c3
...@@ -141,6 +141,9 @@ The background pattern was downloaded from www.subtlepatterns.com ...@@ -141,6 +141,9 @@ The background pattern was downloaded from www.subtlepatterns.com
Changelog Changelog
========= =========
1.3.8 (01/2016)
- Fix logging when LLVM is not installed
1.3.7 (12/2015) 1.3.7 (12/2015)
- Added icon to use Continuous Signals from the GUI - Added icon to use Continuous Signals from the GUI
......
...@@ -117,7 +117,7 @@ except ImportError: ...@@ -117,7 +117,7 @@ except ImportError:
__all__ = ['opengeode', 'SDL_Scene', 'SDL_View', 'parse'] __all__ = ['opengeode', 'SDL_Scene', 'SDL_View', 'parse']
__version__ = '1.3.7' __version__ = '1.3.8'
if hasattr(sys, 'frozen'): if hasattr(sys, 'frozen'):
# Detect if we are running on Windows (py2exe-generated) # Detect if we are running on Windows (py2exe-generated)
...@@ -2171,34 +2171,34 @@ def init_logging(options): ...@@ -2171,34 +2171,34 @@ def init_logging(options):
# Set log level for all libraries # Set log level for all libraries
LOG.setLevel(level) LOG.setLevel(level)
try: modules = (
modules = ( sdlSymbols,
sdlSymbols, genericSymbols,
genericSymbols, ogAST,
ogAST, ogParser,
ogParser, Lander,
Lander, AdaGenerator,
AdaGenerator, undoCommands,
undoCommands, Renderer,
Renderer, Clipboard,
Clipboard, Statechart,
Statechart, Helper,
Helper, Asn1scc,
Asn1scc, Connectors,
Connectors, Pr,
Pr, TextInteraction,
TextInteraction, Connectors,
Connectors, LlvmGenerator,
LlvmGenerator, CGenerator,
CGenerator, StgBackend
StgBackend )
) for each in modules:
for module in modules: try:
module.LOG.addHandler(handler_console) each.LOG.addHandler(handler_console)
module.LOG.setLevel(level) each.LOG.setLevel(level)
except (NameError, AttributeError) as err: except AttributeError as err:
# Some modules may not be loaded (like llvm on Windows) # Discard unloaded modules (e.g. if LLVM is missing on target)
LOG.info(str(err)) LOG.info(str(err))
def parse(files): def parse(files):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment