--- ray/build_utils/load_plat.py 2003/10/27 10:35:41 1.2 +++ ray/build_utils/load_plat.py 2005/09/12 11:32:30 1.4 @@ -17,7 +17,8 @@ def read_plat(env, args, fn): cfig = ConfigParser.ConfigParser(env.Dictionary()) cfig.read(fn) buildvars = [['CC'], # replace - ['CPPPATH','CPPFLAGS','CCFLAGS','LIBPATH','LINKFLAGS']] # append + ['CPPPATH', 'CPPDEFINES', 'CPPFLAGS', 'CCFLAGS', + 'LIBPATH', 'LINKFLAGS']] # append vars = [ ['install', ['RAD_BASEDIR', 'RAD_BINDIR', 'RAD_RLIBDIR', 'RAD_MANDIR'], @@ -50,11 +51,14 @@ def read_plat(env, args, fn): def load_plat(env, args, platform=None): + for k,v in env.items(): print k,v if os.name == 'posix': POSIX_setup(env) if platform == None: # override p = sys.platform else: p = platform + if p == 'win32' and 'gcc' in env['TOOLS']: + p = 'mingw' pl = [] print 'Detected platform "%s" (%s).' % (sys.platform, os.name) for i in [len(p), -1, -2]: