summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2015-10-11 15:34:32 +0800
committerBernard Xiong <[email protected]>2015-10-11 15:34:32 +0800
commit2e2886168e943fd7b6694295e0281abd47c8624c (patch)
treeef3a1a154b9f5144cee00018fb324050a6c85306 /tools
parenta65ee8ac451723e149a5b6d6d43ee1c3ac37549b (diff)
[Tools] Add win32 spawn patch for module building.
Diffstat (limited to 'tools')
-rw-r--r--tools/building.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/building.py b/tools/building.py
index 5ad6d4e9d2..38b7881797 100644
--- a/tools/building.py
+++ b/tools/building.py
@@ -267,6 +267,12 @@ def PrepareModuleBuilding(env, root_directory, bsp_directory):
global Env
global Rtt_Root
+ # patch for win32 spawn
+ if env['PLATFORM'] == 'win32':
+ win32_spawn = Win32Spawn()
+ win32_spawn.env = env
+ env['SPAWN'] = win32_spawn.spawn
+
Env = env
Rtt_Root = root_directory