[Tools] Add win32 spawn patch for module building.

This commit is contained in:
Bernard Xiong 2015-10-11 15:34:32 +08:00
parent a65ee8ac45
commit 2e2886168e
1 changed files with 6 additions and 0 deletions

View File

@ -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