Changeset 3353


Ignore:
Timestamp:
Jul 18, 2006, 3:27:18 PM (18 years ago)
Author:
jack
Message:

Fixed building under win32 with scons to default to gcc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SConstruct

    r3328 r3353  
    99env = Environment(options = opts)
    1010
    11 if env['CC'] == 'gcc':
    12     env.Append(CCFLAGS=['${GCCFLAGS}'])
    13 elif env['CC'] == 'cl':
    14     env.Append(CCFLAGS=['${MSVCFLAGS}'])
    15 
    1611Help(opts.GenerateHelpText(env))
    1712
     
    2015if sys.platform == 'win32':
    2116    # Prefer MinGW over MSVC
    22     env.Prepend(TOOLS=['mingw'])
     17    Tool('mingw')(env)
    2318
    2419    python_include = os.path.join(sys.exec_prefix, 'include')
     
    4540env.Append(CPPPATH=[python_include])
    4641
     42# Set appropriate CCFLAGS for the compiler.
     43if env['CC'] == 'gcc':
     44    env.Append(CCFLAGS=['${GCCFLAGS}'])
     45elif env['CC'] == 'cl':
     46    env.Append(CCFLAGS=['${MSVCFLAGS}'])
     47
    4748Export('env')
    4849
Note: See TracChangeset for help on using the changeset viewer.