From d01eef7d3e4a21b378523e1aa73421d12caf674c Mon Sep 17 00:00:00 2001
From: Martin Bauer <martin.bauer@fau.de>
Date: Wed, 20 Jun 2018 09:51:05 +0200
Subject: [PATCH] Config reading bugfix for windows builds

---
 cpu/cpujit.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cpu/cpujit.py b/cpu/cpujit.py
index f78c22dd2..e40473f53 100644
--- a/cpu/cpujit.py
+++ b/cpu/cpujit.py
@@ -181,6 +181,8 @@ def read_config():
     if config['compiler']['os'] == 'windows':
         from pystencils.cpu.msvc_detection import get_environment
         msvc_env = get_environment(config['compiler']['msvc_version'], config['compiler']['arch'])
+        if 'env' not in config['compiler']:
+            config['compiler']['env'] = {}
         config['compiler']['env'].update(msvc_env)
 
     return config
-- 
GitLab