- Add support for IRIX and the SGI MIPSPro tool chain.
+ - Support using the MSVC tool chain when running Cygwin Python.
+
From Charles Crain:
- Added new AddPreAction() and AddPostAction() functions that support
env['SHLIBEMITTER']= win32LibEmitter
env['LINK'] = 'link'
env['LINKFLAGS'] = '/nologo'
- env['LINKCOM'] = LinkAction
+ if str(platform) == 'cygwin':
+ env['LINKCOM'] = '$LINK $LINKFLAGS /OUT:$TARGET $( $_LIBDIRFLAGS $) $_LIBFLAGS $SOURCES'
+ else:
+ env['LINKCOM'] = LinkAction
env['PROGEMITTER'] = prog_emitter
env['LIBDIRPREFIX']='/LIBPATH:'
env['LIBDIRSUFFIX']=''
env['WIN32DEFSUFFIX'] = '.def'
env['WIN32_INSERT_DEF'] = 0
- include_path, lib_path, exe_path = get_msdev_paths()
- env['ENV']['LIB'] = lib_path
- env['ENV']['PATH'] = exe_path
+ if SCons.Util.can_read_reg:
+ include_path, lib_path, exe_path = get_msdev_paths()
+ env['ENV']['LIB'] = lib_path
+ env['ENV']['PATH'] = exe_path
def exists(env):
return env.Detect('link')
if CScan:
CScan.add_skey('.rc')
env['BUILDERS']['RES'] = res_builder
-
- include_path, lib_path, exe_path = get_msdev_paths()
- env['ENV']['INCLUDE'] = include_path
- env['ENV']['PATH'] = exe_path
+
+ if SCons.Util.can_read_reg:
+ include_path, lib_path, exe_path = get_msdev_paths()
+ env['ENV']['INCLUDE'] = include_path
+ env['ENV']['PATH'] = exe_path
env['CFILESUFFIX'] = '.c'
env['CXXFILESUFFIX'] = '.cc'